From b6cbac40509a37751f9a027cdae6b69cd86aaf00 Mon Sep 17 00:00:00 2001 From: Parker Date: Tue, 2 Apr 2024 16:16:47 -0500 Subject: Combine forms into 1 file --- code/cogs/modals.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 code/cogs/modals.py (limited to 'code/cogs/modals.py') diff --git a/code/cogs/modals.py b/code/cogs/modals.py deleted file mode 100644 index 390bbda..0000000 --- a/code/cogs/modals.py +++ /dev/null @@ -1,25 +0,0 @@ -import discord -from discord import app_commands -from discord.ext import commands - -from bug_report import BugReport -from feedback import FeedbackForm - - -class Modals(commands.Cog): - def __init__(self, bot): - self.bot = bot - - @app_commands.command() - async def bug(self, interaction: discord.Interaction): - "Send a bug report to the developer" - await interaction.response.send_modal(BugReport(self.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