From d697b6392d9af8b9e05c1ca9cd1126fb6acdce21 Mon Sep 17 00:00:00 2001 From: Connor Postma Date: Wed, 15 May 2019 17:43:53 -0400 Subject: [PATCH 1/3] cleaned out some of the cargo dependencies --- Cargo.toml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 703508e..270eff4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,19 +5,15 @@ authors = ["Connor Postma "] edition = "2018" [dependencies] +# The Discord API crate +ferriscord = { directory = "../ferriscord/"} # Debug logging -env_logger = "0.6.1" -# Helper to retreive +env_logger = "0.6" +# Helper to retreive .env dotenv = "0.14" # The most fun web and actor system framework actix = "0.8.1" actix-web = "1.0.0-beta.3" actix-rt = "0.2.2" -# A handle bars based html engine. Very fast, and includes templates on compile time -yarte = { version = "0.2", features = ["with-actix-web"] } -# Serialization -serde = "1.0" -serde_derive = "1.0" -serde_json = "1.0" # An adorable little crustacean that just want's to say hello ferris_says = "0.1.1" \ No newline at end of file From 1073a395a26d73a8a7160961aca1434d7f8c1c66 Mon Sep 17 00:00:00 2001 From: Connor Postma Date: Wed, 15 May 2019 17:52:05 -0400 Subject: [PATCH 2/3] removed .with_default_help() for .with_custom_help() --- src/main.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 77b831e..0f86ce0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,6 @@ fn main() { // Initialize a new bot connection let con = discord_api::Connection::new(bot_token) .with_prefix('!') // the prefix to listen to for commands - .with_default_help() // a default auto generated !help command .with_commands(say, ping) // register the bot's commands .with_events(on_ready, on_message) // register all event callbacks .run(); // start the bot From 8fe82a55e1a121505bd13cca3d22d5e2bded68bb Mon Sep 17 00:00:00 2001 From: Connor Postma Date: Wed, 15 May 2019 18:16:51 -0400 Subject: [PATCH 3/3] added some style options to .rustfmt.toml --- .rustfmt.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.rustfmt.toml b/.rustfmt.toml index e69de29..bcb9135 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -0,0 +1,5 @@ +# Repo consistant format configuration + +indent_style = "Visual" #default is Block +control_brace_style = "AlwaysSameLine" #default +fn_args_density = "Compressed" #default is Tall \ No newline at end of file