Unverified Commit 379f0f2c authored by tec's avatar tec
Browse files

Make the !source command output more saucy

parent 9a1cbcb1
Pipeline #238 failed with stages
in 6 seconds
...@@ -61,7 +61,8 @@ impl EventHandler for Handler { ...@@ -61,7 +61,8 @@ impl EventHandler for Handler {
fn message(&self, ctx: Context, msg: Message) { fn message(&self, ctx: Context, msg: Message) {
if !(msg.content.starts_with(&CONFIG.command_prefix)) { if !(msg.content.starts_with(&CONFIG.command_prefix)) {
if msg.content.contains(&format!("<@!{}>", CONFIG.bot_id)) // desktop mentions if msg.content.contains(&format!("<@!{}>", CONFIG.bot_id)) // desktop mentions
|| msg.content.contains(&format!("<@{}>", CONFIG.bot_id)) // mobile mentions || msg.content.contains(&format!("<@{}>", CONFIG.bot_id))
// mobile mentions
{ {
send_message!( send_message!(
msg.channel_id, msg.channel_id,
...@@ -91,11 +92,13 @@ impl EventHandler for Handler { ...@@ -91,11 +92,13 @@ impl EventHandler for Handler {
"poll" => voting::Commands::poll(ctx, msg.clone(), content), "poll" => voting::Commands::poll(ctx, msg.clone(), content),
"cowsay" => voting::Commands::cowsay(ctx, msg.clone(), content), "cowsay" => voting::Commands::cowsay(ctx, msg.clone(), content),
"source" => { "source" => {
send_message!( let mut mesg = MessageBuilder::new();
msg.channel_id, mesg.push(
&ctx.http, "You want to look at my insides!? Eurgh.\nJust kidding, you can go over ",
"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"
); );
mesg.push_italic("every inch ");
mesg.push("of me here: https://gitlab.ucc.asn.au/UCC/discord-bot 😉");
send_message!(msg.channel_id, &ctx.http, mesg.build());
} }
"help" => { "help" => {
// Plaintext version, keep in case IRC users kick up a fuss // Plaintext version, keep in case IRC users kick up a fuss
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment