aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorNathan Perry <avaglir@gmail.com>2018-08-13 19:51:07 -0400
committerNathan Perry <avaglir@gmail.com>2018-08-13 19:51:07 -0400
commit831a906e8e422ff2bf294e5496c3a6acef804d8e (patch)
treef1263a067d8b70d51590eb6ff9c782421368483f /src/main.rs
parenta064941bd542a4d66ac1452bd876fef91b0bf87f (diff)
update for 2018 edition
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/main.rs b/src/main.rs
index 7bc37ec..baf1e06 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,23 +1,9 @@
#![feature(transpose_result)]
-extern crate chrono;
-extern crate ctrlc;
-extern crate dotenv;
-#[macro_use] extern crate dotenv_codegen;
-#[macro_use] extern crate failure;
-extern crate fern;
#[macro_use] extern crate lazy_static;
#[macro_use] extern crate log;
-extern crate serenity;
-extern crate typemap;
-extern crate url;
-extern crate rand;
-extern crate either;
-extern crate reqwest;
-extern crate sha1;
-extern crate mime_guess;
-extern crate regex;
-extern crate clap;
+#[macro_use] extern crate dotenv_codegen;
+#[macro_use] extern crate failure;
use self::commands::register_commands;
use dotenv::dotenv;
@@ -26,8 +12,7 @@ use serenity::framework::StandardFramework;
use serenity::model::gateway::Ready;
use serenity::model::id::{GuildId, UserId};
use serenity::prelude::*;
-use std::env;
-use std::thread;
+use std::{env, thread};
use std::time::{Duration, Instant};
use failure::Error;