Skip to content

Commit 2387792

Browse files
author
HoolaBoola
committedMar 14, 2020
help.rs was missing
1 parent fe58dc2 commit 2387792

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 

‎src/commands/help.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use serenity::framework::standard::{macros::command, CommandResult};
2+
use serenity::model::prelude::*;
3+
use serenity::prelude::*;
4+
5+
#[command]
6+
#[aliases("info", "h")]
7+
fn help(context: &mut Context, message: &Message) -> CommandResult {
8+
let response = "Commands:```\nread:\nattach an image with the command, and I will tell what text it has\n\nhelp:\ndisplay this message```";
9+
10+
let _ = message.channel_id.say(&context.http, response);
11+
12+
Ok(())
13+
}

0 commit comments

Comments
 (0)