Skip to content

Commit

Permalink
🌚 Add DevCog with say command
Browse files Browse the repository at this point in the history
  • Loading branch information
tookender committed Oct 24, 2024
1 parent f3b6fca commit f29a5e3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/events/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
from .ghost import GhostCog
from .guild import GuildCog
from .ping import PingCog
from .dev import DevCog


class Events(PingCog, GuildCog, ErrorsCog, GhostCog): # PingCog needs to be first, it adds attributes
class Events(PingCog, GuildCog, ErrorsCog, GhostCog, DevCog): # PingCog needs to be first, it adds attributes
pass


Expand Down
10 changes: 10 additions & 0 deletions extensions/events/dev.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from discord.ext import commands
from ._base import EventsBase


class DevCog(EventsBase):
@commands.Cog.listener()
@commands.is_owner()
async def say(self, ctx: commands.Context, *, message: str):
await ctx.message.delete()
await ctx.send(message)

0 comments on commit f29a5e3

Please sign in to comment.