half assed translations not doing this today

This commit is contained in:
WhatDidYouExpect 2025-07-18 14:02:57 +02:00
parent 8666c83565
commit 52d9b058cf
3 changed files with 214 additions and 4 deletions

View file

@ -5,12 +5,13 @@ from discord.ext import commands
import aiohttp
import asyncio
from modules.globalvars import bot
from modules.volta.main import _
@bot.hybrid_command(description="Guess the number game")
@bot.hybrid_command(description=_('guess_the_number'))
async def guessthenumber(ctx: commands.Context):
number = random.randint(1, 10)
class GuessModal(ui.Modal, title="Guess the Number"):
guess = ui.TextInput(label="Your guess (1-10)", style=TextStyle.short)
class GuessModal(ui.Modal, title=_('guess_the_number')):
guess = ui.TextInput(label=_('your_guess'), style=TextStyle.short)
async def on_submit(self, interaction: Interaction):
try:
user_guess = int(self.guess.value)