aboutsummaryrefslogtreecommitdiff
path: root/src/commands/meme/history.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2019-07-16 17:22:04 -0400
committerNathan Perry <np@nathanperry.dev>2019-07-16 17:22:04 -0400
commitca46177a5df0eac30b3ca2bc33c5015e03f18688 (patch)
tree33e0f137d6ce84d721c7102239c790c922e4e320 /src/commands/meme/history.rs
parent54f729b3e2315e7d70f8daa01132cb233d302b1c (diff)
restricted prefixes
Diffstat (limited to 'src/commands/meme/history.rs')
-rw-r--r--src/commands/meme/history.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/commands/meme/history.rs b/src/commands/meme/history.rs
index 7a38325..e5f15f5 100644
--- a/src/commands/meme/history.rs
+++ b/src/commands/meme/history.rs
@@ -109,8 +109,6 @@ pub fn history(_: &mut Context, msg: &Message, mut args: Args) -> Result<()> {
.enumerate()
.rev()
.map(|(i, rec)| {
- use chrono;
-
let dt = chrono::DateTime::from_utc(rec.time, chrono::Utc{});
let ago = TIME_FORMATTER.convert((chrono::Utc::now() - dt).to_std().unwrap());
@@ -142,7 +140,6 @@ pub fn history(_: &mut Context, msg: &Message, mut args: Args) -> Result<()> {
pub fn stats(_: &mut Context, msg: &Message, _: Args) -> Result<()> {
use db;
- use chrono;
use serenity::model::{
id::UserId,
user::User,