aboutsummaryrefslogtreecommitdiff
path: root/src/commands/meme/mod.rs
diff options
context:
space:
mode:
authorNathan Perry <avaglir@gmail.com>2019-03-30 05:23:54 -0400
committerNathan Perry <avaglir@gmail.com>2019-03-30 05:23:54 -0400
commite7e2daa560af199bd005a8526ebcf7ff4441e3ea (patch)
treeb54be3956efa77ed729e0940e82b258798062a58 /src/commands/meme/mod.rs
parenta6f5334f984531cf2304b6333b138944517d3703 (diff)
add rarememe command
Diffstat (limited to 'src/commands/meme/mod.rs')
-rw-r--r--src/commands/meme/mod.rs32
1 files changed, 2 insertions, 30 deletions
diff --git a/src/commands/meme/mod.rs b/src/commands/meme/mod.rs
index d29a025..ce1cb48 100644
--- a/src/commands/meme/mod.rs
+++ b/src/commands/meme/mod.rs
@@ -1,46 +1,18 @@
-use std::{
- io::Read,
- process::{
- Command,
- Stdio,
- },
-};
-
-use diesel::{
- NotFound,
- PgConnection,
- result::Error as DieselError,
-};
-use failure::Error;
+use diesel::PgConnection;
use rand::{Rng, thread_rng};
use serenity::{
builder::CreateMessage,
- framework::standard::Args,
http::AttachmentType,
model::channel::Message,
prelude::*,
};
-use url::Url;
use crate::{
audio::{
- CtxExt,
- parse_times,
PlayArgs,
PlayQueue,
- ytdl_url,
- },
- commands::send,
- db::{
- Audio,
- connection,
- delete_meme,
- find_meme,
- Image,
- InvocationRecord,
- Meme,
- NewMeme,
},
+ db::Meme,
Result,
};