From 3d3cf76ddc9f695e9d4b1f728706f8f71f32b932 Mon Sep 17 00:00:00 2001 From: Agatha Rose Date: Sat, 27 Jul 2019 15:18:10 +0300 Subject: [PATCH] Change prefix & more cleanup --- src/main.rs | 54 +++++++++++++++++------------------------------------ 1 file changed, 17 insertions(+), 37 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5c4f5af..30922dd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,7 +37,7 @@ fn main() { .expect("Error creating client"); client.with_framework( StandardFramework::new() - .configure(|c| c.prefix("OwO ").case_insensitivity(false)) + .configure(|c| c.prefix("owo ").case_insensitivity(true)) .cmd("init", init) .cmd("gayculator", gayculator) .command("ad", |c| { @@ -160,9 +160,9 @@ use std::hash::{Hash, Hasher}; command!(headpat(_ctx, message, args) { message.channel_id.send_message(|m| m.embed(|e| - e.title(format!("Sending headpats to {}...", args.trim().to_string())) + e.title(format!("Sending headpats to **{}**...", args.trim().to_string())) .image("https://i.pinimg.com/originals/83/1a/90/831a903eab6d827dcfd298b9e3196e30.jpg") - .description("Source: https://www.pinterest.com/pin/377809856242075277/")) + .description("[Source](https://www.pinterest.com/pin/377809856242075277/)")) ).expect("Failed to send message!"); }); @@ -220,7 +220,7 @@ if message.author.id != 191948420141809665 { }); */ command!(waffle(_ctx, message) { - let _ = message.channel_id.say("Dongle!"); + let _ = message.channel_id.say("h"); }); command!(sausage(_ctx, message) { @@ -247,19 +247,20 @@ command!(help(_ctx, message) { .title("Availble commands:") .description("All commands are case-insensitive") .fields(vec![ - ("OwO init", "Introduce me", false), - ("OwO ping", "Pong", false), - ("OwO waffle", "Join the **waffle dongle** cult!", false), - ("OwO sausage", "Join the **sausage dongle** cult!", false), - ("OwO help", "Help the fellow humanz!", false), - ("OwO info", "Show information about me!", false), - ("OwO compare_bot ``bot's name``", "Compare me to other robots!", false), - ("OwO what's this ``word``", "Find a definition of word", false), - ("OwO ship ``name 1`` ``name 2``", "*shipping intensifies*", false), + ("owo init", "Introduce me", false), + ("owo ping", "Pong", false), + ("owo waffle", "stroopwafel owo", false), + ("owo sausage", "sosig", false), + ("owo help", "Help the fellow humanz!", false), + ("owo info", "Show information about me!", false), + ("owo compare_bot ``bot's name``", "Compare me to other robots!", false), + ("owo what's this ``word``", "Find a definition of word", false), + ("owo ship ``name 1`` ``name 2``", "*shipping intensifies*", false), + ("owo headpat ``name``", "Headpat someone", false), ("Admin commands:", "\u{200B}", true), - ("OwO halt", "kill me", false), - ("OwO list_srv", "list my servers", false), - ("OwO host", "Display host info", false) + ("owo halt", "kill me", false), + ("owo list_srv", "list my servers", false), + ("owo host", "Display host info", false) ]) .color(0x000000) )); @@ -307,24 +308,3 @@ command!(what(_ctx, message, args){ .field("Definition: ", def.definition.replace(|c| c == '[' || c == ']', ""), false) )); }); - -/*command!(lyrics(_ctx, _message, _args) { - use select::document::Document; - use select::predicate::{Predicate, Attr, Class, Name}; - -}); */ - -/*command!(embed_test(_ctx, message) { - let _ = message.channel_id.send_message(|m| m - .content("Hello, World!") - .embed(|e| e - .title("This is a title") - .description("This is a description") - .fields(vec![ - ("This is the first field", "This is a field body", true), - ("This is the second field", "Both of these fields are inline", true), - ]) - .field("This is the third field", "This is not an inline field", false) - .footer(|f| f - .text("This is #1337a footer")))); -}); */