diff options
author | Parker <contact@pkrm.dev> | 2024-04-02 16:11:23 -0500 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2024-04-02 16:11:23 -0500 |
commit | e0b75e7de525747b32014bc9d83af7d38eccaddd (patch) | |
tree | 46eada4b71be7fa4ac570803344ae9c69a0efee1 /code/cogs/modals.py | |
parent | 7caf3ed0742df6360bb864696e5cbddcef7ca876 (diff) |
Add feedback command
Diffstat (limited to 'code/cogs/modals.py')
-rw-r--r-- | code/cogs/modals.py | 19 |
1 files changed, 19 insertions, 0 deletions
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)) |