no more dms

This commit is contained in:
Stachelbeere1248 2024-01-02 23:13:50 +01:00
parent e5fe7a5378
commit 6683cef920
Signed by: Stachelbeere1248
SSH key fingerprint: SHA256:IozEKdw2dB8TZxkpPdMxcWSoWTIMwoLaCcZJ1AJnY2o
3 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ use crate::{Context, Error};
use crate::commands::{command_helper, helpstart}; use crate::commands::{command_helper, helpstart};
use std::string::String; use std::string::String;
#[poise::command(slash_command)] #[poise::command(slash_command,guild_only)]
pub(crate) async fn bots( pub(crate) async fn bots(
ctx: Context<'_>, ctx: Context<'_>,

View file

@ -3,7 +3,7 @@ use crate::commands::command_helper;
static mut BOTS_AVAILABLE: u8 = 0; static mut BOTS_AVAILABLE: u8 = 0;
#[poise::command(slash_command)] #[poise::command(slash_command,guild_only)]
pub(crate) async fn helpstart( pub(crate) async fn helpstart(
ctx: Context<'_>, ctx: Context<'_>,
@ -27,7 +27,7 @@ pub(crate) async fn helpstart(
}; };
format!( format!(
"<@&1008075054971621448>\nneed: {}" "<@&1008075054971621448>\nneed: {}"
, (needed_players - bots) , needed_players - bots
) )
}; };

View file

@ -38,7 +38,7 @@ pub enum Difficulty {
#[name = "R.I.P."] #[name = "R.I.P."]
Rip, Rip,
} }
#[poise::command(slash_command)] #[poise::command(slash_command,guild_only)]
pub(crate) async fn lfg( pub(crate) async fn lfg(
ctx: Context<'_>, ctx: Context<'_>,