started adding commands
This commit is contained in:
54
src/commands/info_cmds.rs
Normal file
54
src/commands/info_cmds.rs
Normal file
@ -0,0 +1,54 @@
|
||||
use regex_command_attr::command;
|
||||
|
||||
use serenity::{
|
||||
client::Context,
|
||||
model::{
|
||||
channel::{
|
||||
Message,
|
||||
},
|
||||
},
|
||||
framework::standard::{
|
||||
Args, CommandResult,
|
||||
},
|
||||
};
|
||||
use crate::THEME_COLOR;
|
||||
|
||||
|
||||
#[command]
|
||||
async fn help(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
|
||||
msg.channel_id.send_message(ctx, |m| m
|
||||
.embed(|e| e
|
||||
.title("Help")
|
||||
.description("Help Description")
|
||||
.color(THEME_COLOR)
|
||||
)
|
||||
).await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[command]
|
||||
async fn info(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
|
||||
msg.channel_id.send_message(ctx, |m| m
|
||||
.embed(|e| e
|
||||
.title("Info")
|
||||
.description("Info Description")
|
||||
.color(THEME_COLOR)
|
||||
)
|
||||
).await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[command]
|
||||
async fn donate(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
|
||||
msg.channel_id.send_message(ctx, |m| m
|
||||
.embed(|e| e
|
||||
.title("Donate")
|
||||
.description("Donate Description")
|
||||
.color(THEME_COLOR)
|
||||
)
|
||||
).await?;
|
||||
|
||||
Ok(())
|
||||
}
|
Reference in New Issue
Block a user