From b5f109a4b27b7e4a6280c6bbcf959c9c4103f27a Mon Sep 17 00:00:00 2001 From: MagicTheDev Date: Sun, 17 Nov 2024 10:07:34 -0600 Subject: [PATCH] puhs to master --- commands/owner/commands.py | 3 +++ commands/ticketing/commands.py | 3 ++- commands/war/commands.py | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/commands/owner/commands.py b/commands/owner/commands.py index 39e7b202..3ba2ee06 100644 --- a/commands/owner/commands.py +++ b/commands/owner/commands.py @@ -1,6 +1,7 @@ import io import re import textwrap +import time from contextlib import redirect_stdout from datetime import datetime @@ -125,6 +126,8 @@ def check(res: disnake.ModalInteraction): async def test(self, ctx: disnake.ApplicationCommandInteraction): pass + + @commands.slash_command(name='anniversary', guild_ids=[923764211845312533]) @commands.is_owner() async def anniversary(self, ctx: disnake.ApplicationCommandInteraction): diff --git a/commands/ticketing/commands.py b/commands/ticketing/commands.py index 80741e12..55f211c9 100644 --- a/commands/ticketing/commands.py +++ b/commands/ticketing/commands.py @@ -21,7 +21,8 @@ def __init__(self, bot: CustomClient): super().__init__(bot) self.bot = bot - @commands.slash_command(name='ticket') + + @commands.slash_command(name='ticketfudge') async def ticket(self, ctx: disnake.ApplicationCommandInteraction): pass diff --git a/commands/war/commands.py b/commands/war/commands.py index d7202f74..9d1f8085 100644 --- a/commands/war/commands.py +++ b/commands/war/commands.py @@ -42,10 +42,11 @@ async def war(self, ctx: disnake.ApplicationCommandInteraction): async def war_search( self, ctx: disnake.ApplicationCommandInteraction, - clan: str = commands.Param(converter=convert.clan, autocomplete=autocomplete.clan), + clan: coc.Clan = commands.Param(converter=convert.clan, autocomplete=autocomplete.clan), previous_wars: str = commands.Param(default=None, autocomplete=autocomplete.previous_wars), ): await ctx.response.defer() + if previous_wars is not None: war_data = await self.bot.clan_wars.find_one( {