Updated arg system & made websocked somehow work???

This commit is contained in:
2025-02-08 15:50:33 +01:00
parent e2869fb8a2
commit 1c7170bb81
10 changed files with 77 additions and 52 deletions
+1 -2
View File
@@ -25,8 +25,7 @@ pub async fn stop(
#[description = "Type \"i want to stop the bot now\" to confirm."] confirmation: Option<String>,
) -> Result<(), Error>
{
let dev_enabled = ctx.data().dev;
let should_stop = dev_enabled
let should_stop = ctx.data().args.dev
|| confirmation.unwrap_or_else(|| "".to_string()).to_lowercase() == "i want to stop the bot now";
let is_creator = ctx.author().id == UserId::new(ctx.data().creator_id);