forked from sorceress/rustcord
Cleanup & fixes
This commit is contained in:
parent
fd40d4d0f6
commit
61736050ba
File diff suppressed because it is too large
Load Diff
23
src/main.rs
23
src/main.rs
|
@ -46,7 +46,8 @@ fn main() {
|
||||||
c.cmd(ad).check(|_, msg, _, _| {
|
c.cmd(ad).check(|_, msg, _, _| {
|
||||||
msg.guild_id == Some(serenity::model::id::GuildId(255386835964919810))
|
msg.guild_id == Some(serenity::model::id::GuildId(255386835964919810))
|
||||||
})
|
})
|
||||||
}).cmd("waffle", waffle)
|
})
|
||||||
|
.cmd("waffle", waffle)
|
||||||
.cmd("sausage", sausage)
|
.cmd("sausage", sausage)
|
||||||
.cmd("halt", halt)
|
.cmd("halt", halt)
|
||||||
.cmd("help", help)
|
.cmd("help", help)
|
||||||
|
@ -58,7 +59,6 @@ fn main() {
|
||||||
})
|
})
|
||||||
.cmd("ship", ship)
|
.cmd("ship", ship)
|
||||||
.cmd("uwu", uwu)
|
.cmd("uwu", uwu)
|
||||||
/* .cmd("lyrics", lyrics) */
|
|
||||||
.cmd("host", host)
|
.cmd("host", host)
|
||||||
.cmd("what's this", what),
|
.cmd("what's this", what),
|
||||||
);
|
);
|
||||||
|
@ -114,7 +114,7 @@ command!(list_srv(_ctx, message) {
|
||||||
let guild = guild_lock.read();
|
let guild = guild_lock.read();
|
||||||
list.push_str(&format!("{}: {}\n", index, guild.name));
|
list.push_str(&format!("{}: {}\n", index, guild.name));
|
||||||
}
|
}
|
||||||
let _ = message.channel_id.say(format!("{}", list));
|
let _ = message.channel_id.say(format!("{}", list.replace("@everyone", "WARN: @ mention used as server name")));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -189,8 +189,7 @@ command!(uwu(_ctx, message) {
|
||||||
|
|
||||||
command!(gayculator(_ctx, message, args) {
|
command!(gayculator(_ctx, message, args) {
|
||||||
if message.author.id != 191948420141809665 {
|
if message.author.id != 191948420141809665 {
|
||||||
let number_32: i32 = args.trim().parse()
|
let number_32: i32 = args.trim().parse().unwrap_or(1);
|
||||||
.expect("ERR!");
|
|
||||||
let mut result;
|
let mut result;
|
||||||
if number_32 % 2 == 0 {
|
if number_32 % 2 == 0 {
|
||||||
result = "You are straight as heck!".to_string();
|
result = "You are straight as heck!".to_string();
|
||||||
|
@ -206,6 +205,12 @@ if message.author.id != 191948420141809665 {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* command!(notice(ctx, message, args) {
|
||||||
|
let query: String = args.trim().parse().expect("ERR");
|
||||||
|
let query = query.replace(" ", "+");
|
||||||
|
let link = String::from(format!("https://www.google.com/search?q={}&source=lnms&tbm=isch", query));
|
||||||
|
}); */
|
||||||
|
|
||||||
command!(waffle(_ctx, message) {
|
command!(waffle(_ctx, message) {
|
||||||
let _ = message.channel_id.say("Dongle!");
|
let _ = message.channel_id.say("Dongle!");
|
||||||
});
|
});
|
||||||
|
@ -222,7 +227,7 @@ command!(ad(_ctx, message) {
|
||||||
let _ = message.channel_id.send_message(|m| m
|
let _ = message.channel_id.send_message(|m| m
|
||||||
.embed(|e| e
|
.embed(|e| e
|
||||||
.title(":b:ottom text")
|
.title(":b:ottom text")
|
||||||
***REMOVED***
|
.description("hey @\u{200B}everyone , JOIN OUR SUPER KOOL SERVER ON 1.5.2 CRACKED SERVER MARRIAGE GAY DRUGS TOWN OF SALEM PLUGINS ECONOMY NO GRIEF PROTECTION BETTER THAN HYPIXAL SUPPORTS EMOJI FREE OP CSGO PVP SKYWARS SKYBLOCC BLOCKCHAIN AR VR TENSORFLOW IoT QUANTUM COMPUTER SERVERLESS DARK DATA JAVA ALSO ITS LIKE ROBLOX AAAAA JOIN AT superkool.[B].cc OwO (edited)(edited)(edited)(edited)(edited)(edited)(edited)")
|
||||||
.thumbnail("https://i.imgur.com/8MU0gqD.png")
|
.thumbnail("https://i.imgur.com/8MU0gqD.png")
|
||||||
.color(0x00f3ff))
|
.color(0x00f3ff))
|
||||||
);
|
);
|
||||||
|
@ -258,8 +263,8 @@ let num = CACHE.read().guilds.len();
|
||||||
let _ = message.channel_id.send_message(|m| m
|
let _ = message.channel_id.send_message(|m| m
|
||||||
.embed(|e| e
|
.embed(|e| e
|
||||||
.title("Discordinator9000's info:")
|
.title("Discordinator9000's info:")
|
||||||
.description(":gear: I can do stuff :cucumber:")
|
.description(":h_:")
|
||||||
.field("Author:", "EvilDeaaaadd#1337", false)
|
.field("Author:", "EvilDeaaaadd#9000", false)
|
||||||
.field("Server count:", num , false)
|
.field("Server count:", num , false)
|
||||||
.field("Invite:", "[Invite link](https://discordapp.com/api/oauth2/authorize?client_id=470350233419907129&permissions=2048&scope=bot)", false )
|
.field("Invite:", "[Invite link](https://discordapp.com/api/oauth2/authorize?client_id=470350233419907129&permissions=2048&scope=bot)", false )
|
||||||
.footer(|f| f
|
.footer(|f| f
|
||||||
|
@ -313,5 +318,5 @@ command!(what(_ctx, message, args){
|
||||||
])
|
])
|
||||||
.field("This is the third field", "This is not an inline field", false)
|
.field("This is the third field", "This is not an inline field", false)
|
||||||
.footer(|f| f
|
.footer(|f| f
|
||||||
.text("This is a footer"))));
|
.text("This is EvilDeaaaadd#1337a footer"))));
|
||||||
}); */
|
}); */
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue