You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
851 B
Rust
26 lines
851 B
Rust
use serenity::client::Context;
|
|
use serenity::framework::standard::macros::command;
|
|
use serenity::framework::standard::CommandResult;
|
|
use serenity::model::channel::Message;
|
|
|
|
#[command]
|
|
#[description("Displays information about the bot")]
|
|
#[bucket("general")]
|
|
async fn about(ctx: &Context, msg: &Message) -> CommandResult {
|
|
msg.channel_id
|
|
.send_message(ctx, |m| {
|
|
m.embed(|e| {
|
|
e.title("About").description(format!(
|
|
"\
|
|
I'm a general purpose discord bot written in rusty Rust. \
|
|
My main focus is providing information about all kinds of stuff and playing music.\
|
|
Use `{}help` to get an overview of the commands I provide.",
|
|
std::env::var("BOT_PREFIX").unwrap()
|
|
))
|
|
})
|
|
})
|
|
.await?;
|
|
|
|
Ok(())
|
|
}
|