started adding commands

This commit is contained in:
jude
2020-08-09 23:59:31 +01:00
parent 6de542264a
commit 27c62e6ac2
6 changed files with 69 additions and 5 deletions

54
src/commands/info_cmds.rs Normal file
View 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(())
}