Archived
generated from imcompiling/discord-bot-template
Remove hi cog.
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
from nextcord.ext import commands
|
||||
|
||||
from cogs.commands.birthday import BirthdayCog
|
||||
from cogs.commands.hi import HiCog
|
||||
|
||||
|
||||
# This function will be called when this extension is loaded.
|
||||
@@ -11,4 +10,3 @@ from cogs.commands.hi import HiCog
|
||||
def setup(bot: commands.Bot) -> None:
|
||||
"""Add all command classes to bot."""
|
||||
bot.add_cog(BirthdayCog())
|
||||
bot.add_cog(HiCog(bot))
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
"""Example command file."""
|
||||
|
||||
import nextcord
|
||||
from nextcord.ext import commands
|
||||
|
||||
|
||||
class HiCog(commands.Cog, name="Test commands."):
|
||||
"""Class holds commands for testing."""
|
||||
|
||||
def __init__(self, bot: nextcord.Bot) -> None:
|
||||
self.bot = bot
|
||||
|
||||
@nextcord.slash_command()
|
||||
async def hi(self, interaction: nextcord.Interaction) -> None:
|
||||
"""
|
||||
Says hi.
|
||||
|
||||
Args:
|
||||
interaction (nextcord.Interaction): Interaction to reply to.
|
||||
|
||||
"""
|
||||
await interaction.response.send_message("Hi!", ephemeral=True)
|
||||
Reference in New Issue
Block a user