ts fuckass minigames file will be the death of me

This commit is contained in:
WhatDidYouExpect 2025-07-22 00:19:55 +02:00
parent f17db0d22c
commit 7d6c5aae51
4 changed files with 127 additions and 5 deletions

5
bot.py
View file

@ -50,10 +50,9 @@ from modules.version import *
from modules.sentenceprocessing import *
from modules.unhandledexception import handle_exception
from modules.image import gen_meme, gen_demotivator
# from modules.minigames import guessthenumber, hangman
from modules.minigames import guessthenumber, hangman
sys.excepthook = handle_exception
check_for_update() # Check for updates (from modules/version.py)
# Type aliases
T = TypeVar('T')
MessageContext = Union[commands.Context, discord.Interaction]
@ -114,7 +113,6 @@ async def on_ready() -> None:
logger.info(f"{_('synced_commands')} {len(synced)} {(_('synced_commands2'))}")
slash_commands_enabled = True
logger.info(f"{(_('started')).format(name=NAME)}")
bot.loop.create_task(send_alive_ping_periodically())
except discord.errors.Forbidden as perm_error:
logger.error(f"Permission error while syncing commands: {perm_error}")
@ -136,7 +134,6 @@ async def on_ready() -> None:
}.get(status.lower(), discord.Status.online)
await bot.change_presence(status=status, activity=discord.Activity(type=discord.ActivityType.listening, name=f"{song}"))
launched = True
@bot.event
async def on_command_error(ctx: commands.Context, error: commands.CommandError) -> None:
from modules.unhandledexception import handle_exception