From 1cead5233b152a340aeaefdf58c1de3aebe5b62b Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Wed, 3 Nov 2021 01:56:36 -0400 Subject: update, add omen --- src/commands/meme/invoke.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/commands') 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 @@ -31,6 +31,12 @@ pub fn meme(ctx: &mut Context, msg: &Message, args: Args) -> Result<()> { _meme(ctx, msg, args, AudioPlayback::Optional) } +#[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<()> { @@ -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) => { -- cgit v1.3.1