more music commands

This commit is contained in:
2024-01-30 16:25:56 +01:00
parent a9006f1068
commit 0006cd2ac8
6 changed files with 164 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ use serenity::{
StandardFramework,
},
model::gateway::Ready,
prelude::{GatewayIntents, TypeMapKey},
prelude::GatewayIntents,
};
mod commands;
@@ -22,6 +22,9 @@ use crate::commands::music::deafen::*;
use crate::commands::music::join::*;
use crate::commands::music::leave::*;
use crate::commands::music::mute::*;
use crate::commands::music::play::*;
use crate::commands::music::undeafen::*;
use crate::commands::music::unmute::*;
// tools
use crate::commands::tools::ping::*;
@@ -29,12 +32,6 @@ use crate::commands::tools::ping::*;
// kashi
use crate::commands::kashi::kashi::*;
struct HttpKey;
impl TypeMapKey for HttpKey {
type Value = HttpClient;
}
struct Handler;
#[async_trait]
@@ -45,11 +42,7 @@ impl EventHandler for Handler {
}
#[group]
#[commands(
join, deafen, leave, mute,
ping,
kashi
)]
#[commands(join, deafen, leave, mute, play, unmute, undeafen, ping, kashi)]
struct General;
#[tokio::main]