fix little calendar bug

This commit is contained in:
esef committed 2026-07-13 00:53:08 +03:00
1 parent d944064091
commit 19e2db7fd4
2 files changed
+7 -2

No files matched your search

+2 -2
View File
@@ -53,7 +53,7 @@ class BookModal(discord.ui.Modal, title="Book an Event"):
placeholder="14:30",
min_length=5, max_length=5,
)
title = discord.ui.TextInput(
event_title = discord.ui.TextInput(
label="Title",
placeholder="Demo Review",
default="Demo Review",
@@ -74,7 +74,7 @@ class BookModal(discord.ui.Modal, title="Book an Event"):
async def on_submit(self, interaction: discord.Interaction) -> None:
date = self.date.value.strip()
time_str = self.time.value.strip()
title = self.title.value.strip()
title = self.event_title.value.strip()
country = self.country.value.strip()
description = self.description.value.strip()
+5
View File
@@ -49,6 +49,11 @@ async def on_ready():
asyncio.create_task(forwarder.start())
asyncio.create_task(twitter.start())
asyncio.create_task(twitter_mao.start())
# Clear stale global slash commands
try:
await bot.tree.sync()
except Exception:
pass
async def main():
async with bot: