Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 4 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@ authors = ["Connor Postma <connor.postma@gmail.com>"]
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"
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down