aboutsummaryrefslogtreecommitdiff
path: root/src/commands/meme
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2021-11-03 01:56:36 -0400
committerNathan Perry <np@nathanperry.dev>2021-11-03 01:56:36 -0400
commit1cead5233b152a340aeaefdf58c1de3aebe5b62b (patch)
tree60fbf4ab2dc944608cf3a1529183268d17edf54f /src/commands/meme
parentf59c15906229d8458844003cedbb4aac78926def (diff)
update, add omen
Diffstat (limited to 'src/commands/meme')
-rw-r--r--src/commands/meme/invoke.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/commands/meme/invoke.rs b/src/commands/meme/invoke.rs
index d0b7a19..d966d8c 100644
--- a/src/commands/meme/invoke.rs
+++ b/src/commands/meme/invoke.rs
@@ -32,6 +32,12 @@ pub fn meme(ctx: &mut Context, msg: &Message, args: Args) -> Result<()> {
}
#[command]
+pub fn omen(ctx: &mut Context, msg: &Message, _args: Args) -> Result<()> {
+ let args = Args::new("", &[]);
+ _meme(ctx, msg, args, AudioPlayback::Optional)
+}
+
+#[command]
#[aliases("audiomeme", "audiomem")]
pub fn audio_meme(ctx: &mut Context, msg: &Message, args: Args) -> Result<()> {
_meme(ctx, msg, args, AudioPlayback::Required)
@@ -120,7 +126,7 @@ pub fn rare_meme(ctx: &mut Context, msg: &Message, _args: Args) -> Result<()> {
match meme {
Ok(meme) => {
- InvocationRecord::create(&conn, msg.author.id.0, msg.id.0, meme.id, true)?;
+ r InvocationRecord::create(&conn, msg.author.id.0, msg.id.0, meme.id, true)?;
send_meme(ctx, &meme, &conn, msg)
},
Err(e) => {