From d9160764c018bb04878f092b6eff592b63e1b262 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 1 Nov 2020 00:50:40 -0700 Subject: chore: correct punctuation --- src/core/api.rs | 6 +++--- src/modules/commands/admins/config.rs | 16 ++++++++-------- src/modules/commands/admins/ignore.rs | 4 ++-- src/modules/commands/admins/management.rs | 4 ++-- src/modules/commands/admins/tests.rs | 2 +- src/modules/commands/general/animals.rs | 6 +++--- src/modules/commands/general/fun.rs | 16 ++++++++-------- src/modules/commands/general/misc.rs | 4 ++-- src/modules/commands/general/utilities.rs | 24 ++++++++++++------------ src/modules/commands/mods/hackbans.rs | 6 +++--- src/modules/commands/mods/kickbans.rs | 2 +- src/modules/commands/mods/mute.rs | 4 ++-- src/modules/commands/mods/notes.rs | 4 ++-- src/modules/commands/mods/roles.rs | 4 ++-- src/modules/commands/mods/watchlist.rs | 2 +- src/modules/commands/owners/premium.rs | 2 +- src/wisp.rs | 2 +- 17 files changed, 54 insertions(+), 54 deletions(-) (limited to 'src') diff --git a/src/core/api.rs b/src/core/api.rs index 0d28878..9712ffd 100644 --- a/src/core/api.rs +++ b/src/core/api.rs @@ -146,7 +146,7 @@ pub struct ApiClient { impl ApiClient { pub fn new() -> Self { let client = Client::new(); - let oc_key = env::var("OPENCAGE_KEY").expect("No key for OpenCage in env"); + let oc_key = env::var("OPENCAGE_KEY").expect("Expected key for OpenCage in environment."); let oc_client = Opencage::new(oc_key); ApiClient { client, @@ -157,7 +157,7 @@ impl ApiClient { pub fn stats_update(&self, bot_id: u64, server_count: usize) -> ReqwestResult { let mut headers = Headers::new(); headers.set(ContentType::json()); - headers.set(Authorization(env::var("DBOTS_TOKEN").expect("No DiscordBots.org token in env"))); + headers.set(Authorization(env::var("DBOTS_TOKEN").expect("Expected DiscordBots.org token in enviroment."))); let mut data = HashMap::new(); data.insert("server_count", server_count); @@ -309,7 +309,7 @@ impl ApiClient { first.components.get("state").unwrap(), first.components.get("country").unwrap() ); - let ds_key = env::var("DARKSKY_KEY").expect("No DarkSky API Key found in env"); + let ds_key = env::var("DARKSKY_KEY").expect("Expected DarkSky API Key in enviroment."); let fc_req = Some(ForecastRequestBuilder::new(ds_key.as_str(), *first.geometry.get("lat").unwrap(), *first.geometry.get("lng").unwrap()) .lang(Lang::English) .units(units) diff --git a/src/modules/commands/admins/config.rs b/src/modules/commands/admins/config.rs index 43e2215..e0533ab 100644 --- a/src/modules/commands/admins/config.rs +++ b/src/modules/commands/admins/config.rs @@ -104,7 +104,7 @@ impl Command for ConfigAutorole { fn options(&self) -> Arc { let default = CommandOptions::default(); let options = CommandOptions { - desc: Some("Want to mess with my auto-role settings ? (A role must be provided for `add` or `remove`.)".to_string()), + desc: Some("Want to mess with my auto-role settings? (A role must be provided for `add` or `remove`.)".to_string()), usage: Some(" ".to_string()), example: Some("add member".to_string()), min_args: Some(1), @@ -177,7 +177,7 @@ impl Command for ConfigAdmin { fn options(&self) -> Arc { let default = CommandOptions::default(); let options = CommandOptions { - desc: Some("Who do you want me to consider an admin ?".to_string()), + desc: Some("Who do you want me to consider an admin?".to_string()), usage: Some(" ".to_string()), example: Some("add admin".to_string()), min_args: Some(2), @@ -244,7 +244,7 @@ impl Command for ConfigMod { fn options(&self) -> Arc { let default = CommandOptions::default(); let options = CommandOptions { - desc: Some("Welcome to moderation !".to_string()), + desc: Some("Welcome to moderation!".to_string()), usage: Some(" ".to_string()), example: Some("add staff".to_string()), min_args: Some(2), @@ -311,7 +311,7 @@ impl Command for ConfigAudit { fn options(&self) -> Arc { let default = CommandOptions::default(); let options = CommandOptions { - desc: Some("Amping up security around here ? Change audit log settings. (A channel must be provided for `channel`.)".to_string()), + desc: Some("Amping up security around here? Change audit log settings. (A channel must be provided for `channel`.)".to_string()), usage: Some(" ".to_string()), example: Some("channel #audit-logs".to_string()), min_args: Some(1), @@ -443,9 +443,9 @@ impl Command for ConfigWelcome { let default = CommandOptions::default(); let options = CommandOptions { // desc: Some("Change welcome message settings.\nOption is one of enable, disable, channel, message, type and the respective values should be none, none, channel_resolvable, desired message.\nType designates if the message is plain or embed. Anything other than embed will result in plain.".to_string()), - desc: Some("Want a sick, custom welcome message !?\n\nOptions:\n`enable` - none.\n`disable` - none.\n`channel` - `channel_resolvable` (Mentionable).\n`message` - Your desired welcome message.\n`type` - `plain` or `embed`.".to_string()), + desc: Some("Want a sick, custom welcome message!?\n\nOptions:\n`enable` - none.\n`disable` - none.\n`channel` - `channel_resolvable` (Mentionable).\n`message` - Your desired welcome message.\n`type` - `plain` or `embed`.".to_string()), usage: Some("