From e0b75e7de525747b32014bc9d83af7d38eccaddd Mon Sep 17 00:00:00 2001 From: Parker Date: Tue, 2 Apr 2024 16:11:23 -0500 Subject: Add feedback command --- code/cogs/modals.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 code/cogs/modals.py (limited to 'code/cogs/modals.py') diff --git a/code/cogs/modals.py b/code/cogs/modals.py new file mode 100644 index 0000000..999f3da --- /dev/null +++ b/code/cogs/modals.py @@ -0,0 +1,19 @@ +import discord +from discord import app_commands +from discord.ext import commands + +from feedback import FeedbackForm + + +class Modals(commands.Cog): + def __init__(self, bot): + self.bot = bot + + @app_commands.command() + async def feedback(self, interaction: discord.Interaction): + "Send bot feeback to the developer" + await interaction.response.send_modal(FeedbackForm(self.bot)) + + +async def setup(bot): + await bot.add_cog(Modals(bot)) -- cgit v1.2.3-70-g09d2