fix little calendar bug
This commit is contained in:
1 parent
d944064091
commit
19e2db7fd4
2 files changed
+7
-2
No files matched your search
+2
-2
@@ -53,7 +53,7 @@ class BookModal(discord.ui.Modal, title="Book an Event"):
|
|||||||
placeholder="14:30",
|
placeholder="14:30",
|
||||||
min_length=5, max_length=5,
|
min_length=5, max_length=5,
|
||||||
)
|
)
|
||||||
title = discord.ui.TextInput(
|
event_title = discord.ui.TextInput(
|
||||||
label="Title",
|
label="Title",
|
||||||
placeholder="Demo Review",
|
placeholder="Demo Review",
|
||||||
default="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:
|
async def on_submit(self, interaction: discord.Interaction) -> None:
|
||||||
date = self.date.value.strip()
|
date = self.date.value.strip()
|
||||||
time_str = self.time.value.strip()
|
time_str = self.time.value.strip()
|
||||||
title = self.title.value.strip()
|
title = self.event_title.value.strip()
|
||||||
country = self.country.value.strip()
|
country = self.country.value.strip()
|
||||||
description = self.description.value.strip()
|
description = self.description.value.strip()
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,11 @@ async def on_ready():
|
|||||||
asyncio.create_task(forwarder.start())
|
asyncio.create_task(forwarder.start())
|
||||||
asyncio.create_task(twitter.start())
|
asyncio.create_task(twitter.start())
|
||||||
asyncio.create_task(twitter_mao.start())
|
asyncio.create_task(twitter_mao.start())
|
||||||
|
# Clear stale global slash commands
|
||||||
|
try:
|
||||||
|
await bot.tree.sync()
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
async with bot:
|
async with bot:
|
||||||
|
|||||||
Reference in new issue
Block a user