26 lines
697 B
Python
26 lines
697 B
Python
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))
|