diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 49 |
1 files changed, 35 insertions, 14 deletions
diff --git a/src/main.rs b/src/main.rs index baf1e06..24f35a7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,26 +1,47 @@ #![feature(transpose_result)] +#![feature(crate_in_paths)] -#[macro_use] extern crate lazy_static; -#[macro_use] extern crate log; +extern crate chrono; +#[cfg(feature = "diesel")] +#[macro_use] extern crate diesel; +extern crate dotenv; #[macro_use] extern crate dotenv_codegen; +extern crate either; #[macro_use] extern crate failure; +extern crate fern; +#[macro_use] extern crate lazy_static; +#[macro_use] extern crate log; +extern crate rand; +extern crate regex; +extern crate serenity; +extern crate sha1; +extern crate typemap; +extern crate url; -use self::commands::register_commands; use dotenv::dotenv; -use serenity::framework::standard::help_commands; -use serenity::framework::StandardFramework; -use serenity::model::gateway::Ready; -use serenity::model::id::{GuildId, UserId}; -use serenity::prelude::*; -use std::{env, thread}; -use std::time::{Duration, Instant}; - use failure::Error; - +use self::commands::register_commands; pub use self::util::*; +use serenity::{ + framework::{ + standard::help_commands, + StandardFramework, + }, + model::{ + gateway::Ready, + id::{GuildId, UserId}, + }, + prelude::*, +}; +use std::{ + env, + thread, + time::{ + Duration, + Instant + }, +}; -#[cfg(feature = "diesel")] -#[macro_use] extern crate diesel; #[cfg(feature = "diesel")] mod db; |
