half assed translations not doing this today
This commit is contained in:
parent
8666c83565
commit
52d9b058cf
3 changed files with 214 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue