Blacklist a user

This commit is contained in:
Agatha Rose 2018-07-30 16:41:23 +03:00
parent 170bc03498
commit 8ed121d7c0
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "rustcord" name = "rustcord"
version = "0.5.2" version = "0.5.3"
authors = ["EvilDeaaaadd <EvilDeaaaadd@protonmail.com>"] authors = ["EvilDeaaaadd <EvilDeaaaadd@protonmail.com>"]
[dependencies] [dependencies]

View File

@ -95,6 +95,7 @@ command!(list_srv(_ctx, message) {
}); });
command!(gayculator(_ctx, message, args) { command!(gayculator(_ctx, message, args) {
if message.author.id != 191948420141809665 {
let number_32: i32 = args.trim().parse() let number_32: i32 = args.trim().parse()
.expect("ERR!"); .expect("ERR!");
let mut result; let mut result;
@ -109,6 +110,7 @@ command!(gayculator(_ctx, message, args) {
.description(result) .description(result)
.color(0xff00f9)) .color(0xff00f9))
); );
}
}); });
command!(waffle(_ctx, message) { command!(waffle(_ctx, message) {
@ -169,6 +171,7 @@ let num = CACHE.read().guilds.len();
}); });
command!(compare_bot(_ctx, message, args) { command!(compare_bot(_ctx, message, args) {
if message.author.id != 191948420141809665 {
let text: String = args.trim().parse() let text: String = args.trim().parse()
.expect("ERR!"); .expect("ERR!");
if text.to_lowercase().contains("nib") { if text.to_lowercase().contains("nib") {
@ -180,6 +183,7 @@ let text: String = args.trim().parse()
} else { } else {
let _ = message.channel_id.say(format!("Me and {} are friends!", text)); let _ = message.channel_id.say(format!("Me and {} are friends!", text));
} }
}
}); });