| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from pincer.objects import Embed, MessageContext |
||
| 2 | |||
| 3 | from pincer_bot.core.command import guild_command |
||
| 4 | |||
| 5 | |||
| 6 | class FunCog: |
||
| 7 | |||
| 8 | @guild_command(name="say") |
||
| 9 | async def say_command(self, ctx: MessageContext, message: str): |
||
| 10 | return Embed(description=f"{ctx.author.user.mention} said:\n{message}") |
||
| 11 | |||
| 12 | @guild_command(name="ping") |
||
| 13 | async def ping_command(self) -> str: |
||
| 14 | return 'pong' |
||
| 15 | |||
| 16 | |||
| 17 | setup = FunCog |
||
| 18 |