We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe58dc2 commit 2387792Copy full SHA for 2387792
src/commands/help.rs
@@ -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