Change prefix & more cleanup

This commit is contained in:
Agatha Rose 2019-07-27 15:18:10 +03:00
parent 74f795e1b0
commit 23463eb202
1 changed files with 17 additions and 37 deletions

View File

@ -37,7 +37,7 @@ fn main() {
.expect("Error creating client"); .expect("Error creating client");
client.with_framework( client.with_framework(
StandardFramework::new() StandardFramework::new()
.configure(|c| c.prefix("OwO ").case_insensitivity(false)) .configure(|c| c.prefix("owo ").case_insensitivity(true))
.cmd("init", init) .cmd("init", init)
.cmd("gayculator", gayculator) .cmd("gayculator", gayculator)
.command("ad", |c| { .command("ad", |c| {
@ -160,9 +160,9 @@ use std::hash::{Hash, Hasher};
command!(headpat(_ctx, message, args) { command!(headpat(_ctx, message, args) {
message.channel_id.send_message(|m| message.channel_id.send_message(|m|
m.embed(|e| 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") .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!"); ).expect("Failed to send message!");
}); });
@ -220,7 +220,7 @@ if message.author.id != 191948420141809665 {
}); */ }); */
command!(waffle(_ctx, message) { command!(waffle(_ctx, message) {
let _ = message.channel_id.say("Dongle!"); let _ = message.channel_id.say("h");
}); });
command!(sausage(_ctx, message) { command!(sausage(_ctx, message) {
@ -247,19 +247,20 @@ command!(help(_ctx, message) {
.title("Availble commands:") .title("Availble commands:")
.description("All commands are case-insensitive") .description("All commands are case-insensitive")
.fields(vec![ .fields(vec![
("OwO init", "Introduce me", false), ("owo init", "Introduce me", false),
("OwO ping", "Pong", false), ("owo ping", "Pong", false),
("OwO waffle", "Join the **waffle dongle** cult!", false), ("owo waffle", "stroopwafel owo", false),
("OwO sausage", "Join the **sausage dongle** cult!", false), ("owo sausage", "sosig", false),
("OwO help", "Help the fellow humanz!", false), ("owo help", "Help the fellow humanz!", false),
("OwO info", "Show information about me!", false), ("owo info", "Show information about me!", false),
("OwO compare_bot ``bot's name``", "Compare me to other robots!", 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 what's this ``word``", "Find a definition of word", false),
("OwO ship ``name 1`` ``name 2``", "*shipping intensifies*", false), ("owo ship ``name 1`` ``name 2``", "*shipping intensifies*", false),
("owo headpat ``name``", "Headpat someone", false),
("Admin commands:", "\u{200B}", true), ("Admin commands:", "\u{200B}", true),
("OwO halt", "kill me", false), ("owo halt", "kill me", false),
("OwO list_srv", "list my servers", false), ("owo list_srv", "list my servers", false),
("OwO host", "Display host info", false) ("owo host", "Display host info", false)
]) ])
.color(0x000000) .color(0x000000)
)); ));
@ -307,24 +308,3 @@ command!(what(_ctx, message, args){
.field("Definition: ", def.definition.replace(|c| c == '[' || c == ']', ""), false) .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 EvilDeaaaadd#1337a footer"))));
}); */