From 04fed2ec9e14c155e92a5bcff3cba7bc0df7011e Mon Sep 17 00:00:00 2001 From: tec <tec@ucc.gu.uwa.edu.au> Date: Sun, 19 Apr 2020 01:06:57 +0800 Subject: [PATCH] Add a !source commmand to show the bot's forge --- src/main.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index f02df25..2662609 100644 --- a/src/main.rs +++ b/src/main.rs @@ -88,12 +88,11 @@ impl EventHandler for Handler { "motion" => voting::Commands::motion(ctx, msg.clone(), content), "poll" => voting::Commands::poll(ctx, msg.clone(), content), "cowsay" => voting::Commands::cowsay(ctx, msg.clone(), content), - "logreact" => { - e!("Error deleting logreact prompt: {:?}", msg.delete(&ctx)); + "source" => { send_message!( msg.channel_id, &ctx.http, - "React to this to log the ID (for the next 5min)" + "You want to look at my insides!? Eurgh. \n Just kidding, you can go over every inch of me here: https://gitlab.ucc.asn.au/UCC/discord-bot" ); } "help" => { @@ -130,6 +129,14 @@ impl EventHandler for Handler { } } // undocumented (in !help) functins + "logreact" => { + e!("Error deleting logreact prompt: {:?}", msg.delete(&ctx)); + send_message!( + msg.channel_id, + &ctx.http, + "React to this to log the ID (for the next 5min)" + ); + } "ldap" => send_message!( msg.channel_id, &ctx.http, -- GitLab