Rewrite uwu command
This commit is contained in:
parent
034994775a
commit
036034fbb5
44
src/main.rs
44
src/main.rs
|
@ -340,38 +340,16 @@ fn headpat(ctx: &mut Context, message: &Message, args: Args) -> CommandResult {
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
fn uwu(ctx: &mut Context, message: &Message) -> CommandResult {
|
fn uwu(ctx: &mut Context, message: &Message) -> CommandResult {
|
||||||
let num = rand::thread_rng().gen_range(0, 4);
|
let images = [
|
||||||
match num {
|
"https://i.redditmedia.com/qDD9W7NJqTAk31y061TuRW9R8qOcCuEmmCWyOsUEavE.png?fit=crop&crop=faces%2Centropy&arh=2&w=640&s=ebdd3f1970b4fe70ccd24a1958e7fc32",
|
||||||
0 => {
|
"https://www.shitpostbot.com/img/sourceimages/smash-that-mfuckn-uwu-button-57b5aa1de9fe4.jpeg",
|
||||||
let _ = message.channel_id.send_message(&ctx.http, |m| m
|
"https://www.shitpostbot.com/img/sourceimages/fallout-nv-owo-57e586ae15322.jpeg",
|
||||||
.embed(|e| e
|
"https://i.redditmedia.com/-JaK9YW7mPz2S2xBJmXvW4fZ58uGMa4l6GIgYt3dqZg.jpg?fit=crop&crop=faces%2Centropy&arh=2&w=640&s=ebab29a577346b4d18ec914538b69bb4"
|
||||||
.image("https://i.redditmedia.com/qDD9W7NJqTAk31y061TuRW9R8qOcCuEmmCWyOsUEavE.png?fit=crop&crop=faces%2Centropy&arh=2&w=640&s=ebdd3f1970b4fe70ccd24a1958e7fc32")
|
];
|
||||||
));
|
let num = rand::thread_rng().gen_range(0, images.len());
|
||||||
}
|
let _ = message
|
||||||
1 => {
|
.channel_id
|
||||||
let _ = message.channel_id.send_message(&ctx.http, |m| m
|
.send_message(&ctx.http, |m| m.embed(|e| e.image(images[num])));
|
||||||
.embed(|e| e
|
|
||||||
.image("https://www.shitpostbot.com/img/sourceimages/smash-that-mfuckn-uwu-button-57b5aa1de9fe4.jpeg")
|
|
||||||
));
|
|
||||||
}
|
|
||||||
2 => {
|
|
||||||
let _ = message.channel_id.send_message(&ctx.http, |m| {
|
|
||||||
m.embed(|e| {
|
|
||||||
e
|
|
||||||
.image("https://www.shitpostbot.com/img/sourceimages/fallout-nv-owo-57e586ae15322.jpeg")
|
|
||||||
})
|
|
||||||
});
|
|
||||||
}
|
|
||||||
3 => {
|
|
||||||
let _ = message.channel_id.send_message(&ctx.http, |m| m
|
|
||||||
.embed(|e| e
|
|
||||||
.image("https://i.redditmedia.com/-JaK9YW7mPz2S2xBJmXvW4fZ58uGMa4l6GIgYt3dqZg.jpg?fit=crop&crop=faces%2Centropy&arh=2&w=640&s=ebab29a577346b4d18ec914538b69bb4")
|
|
||||||
));
|
|
||||||
}
|
|
||||||
_ => {
|
|
||||||
let _ = message.channel_id.say(&ctx.http, "UwU");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
@ -446,7 +424,7 @@ fn help(ctx: &mut Context, message: &Message) -> CommandResult {
|
||||||
("owo sausage", "sosig", 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``",
|
"owo compare_bot ``bot's name``",
|
||||||
"Compare me to other robots!",
|
"Compare me to other robots!",
|
||||||
false,
|
false,
|
||||||
|
|
Loading…
Reference in New Issue