Small documentation indentation fixes
This commit is contained in:
parent
66561cb9fa
commit
54889bdf89
2 changed files with 3 additions and 3 deletions
|
@ -12,10 +12,10 @@ use crate::discord::event_handler::Handler;
|
||||||
///
|
///
|
||||||
/// To launch Yorokobot, you have to set the following environment variables:
|
/// To launch Yorokobot, you have to set the following environment variables:
|
||||||
/// - DISCORD_TOKEN: The secret Discord provide you when creating a new bot in the
|
/// - DISCORD_TOKEN: The secret Discord provide you when creating a new bot in the
|
||||||
/// Discord Developper websites.
|
/// Discord Developper websites.
|
||||||
/// - MONGODB_URI: The connection string to your Mongo database.
|
/// - MONGODB_URI: The connection string to your Mongo database.
|
||||||
/// - MONGODB_DATABASE: The database to use in your Mongo instance (falcultative if given in the
|
/// - MONGODB_DATABASE: The database to use in your Mongo instance (falcultative if given in the
|
||||||
/// MONGODB_URI connection string).
|
/// MONGODB_URI connection string).
|
||||||
pub struct Client {
|
pub struct Client {
|
||||||
serenity_client: SerenityClient,
|
serenity_client: SerenityClient,
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,7 +81,7 @@ impl Client {
|
||||||
/// This method will panic if:
|
/// This method will panic if:
|
||||||
/// - The MONGODB_URI environment variable is not set.
|
/// - The MONGODB_URI environment variable is not set.
|
||||||
/// - If the database to use is not specified in the connection string given with MONGODB_URI
|
/// - If the database to use is not specified in the connection string given with MONGODB_URI
|
||||||
/// and if MONGODB_DATABASE is not set.
|
/// and if MONGODB_DATABASE is not set.
|
||||||
/// - If the given credentials are invalid.
|
/// - If the given credentials are invalid.
|
||||||
pub async fn connect(&mut self) {
|
pub async fn connect(&mut self) {
|
||||||
self.mongo_client = match MongoClient::with_uri_str(get_env_variable("MONGODB_URI")).await {
|
self.mongo_client = match MongoClient::with_uri_str(get_env_variable("MONGODB_URI")).await {
|
||||||
|
|
Loading…
Reference in a new issue