fun.FunCog.say_command()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 3
dl 0
loc 3
rs 10
c 0
b 0
f 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