mirror of
https://github.com/ethanrusz/echbot.git
synced 2024-11-21 19:57:46 -05:00
Add pog command
This commit is contained in:
parent
d788e77012
commit
1fabf2c76f
3 changed files with 37 additions and 0 deletions
|
@ -5,3 +5,4 @@ pub mod profile;
|
||||||
pub mod random;
|
pub mod random;
|
||||||
pub mod register;
|
pub mod register;
|
||||||
pub mod team;
|
pub mod team;
|
||||||
|
pub mod pog;
|
||||||
|
|
35
src/commands/pog.rs
Normal file
35
src/commands/pog.rs
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
use crate::serenity;
|
||||||
|
use crate::{Context, Error};
|
||||||
|
|
||||||
|
#[poise::command(slash_command, subcommands("up", "down"))]
|
||||||
|
pub async fn pog(_ctx: Context<'_>) -> Result<(), Error> {
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Increases the pogs
|
||||||
|
#[poise::command(slash_command)]
|
||||||
|
pub async fn up(ctx: Context<'_>) -> Result<(), Error> {
|
||||||
|
ctx.send(|f| {
|
||||||
|
f.embed(|f| {
|
||||||
|
f.title("Pog Status")
|
||||||
|
.description("The pog level has been increased.")
|
||||||
|
.color(serenity::Colour::DARK_GREEN)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.await?;
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Decreases the pogs
|
||||||
|
#[poise::command(slash_command)]
|
||||||
|
pub async fn down(ctx: Context<'_>) -> Result<(), Error> {
|
||||||
|
ctx.send(|f| {
|
||||||
|
f.embed(|f| {
|
||||||
|
f.title("Pog Status")
|
||||||
|
.description("The pog level has been decreased.")
|
||||||
|
.color(serenity::Colour::RED)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.await?;
|
||||||
|
Ok(())
|
||||||
|
}
|
|
@ -17,6 +17,7 @@ async fn main() {
|
||||||
commands::random::random(),
|
commands::random::random(),
|
||||||
commands::register::register(),
|
commands::register::register(),
|
||||||
commands::profile::profile(),
|
commands::profile::profile(),
|
||||||
|
commands::pog::pog(),
|
||||||
], // IntelliJ doesn't like this, but it's fine.
|
], // IntelliJ doesn't like this, but it's fine.
|
||||||
..Default::default()
|
..Default::default()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue