fun   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A FunCog.say_command() 0 3 1
A FunCog.ping_command() 0 3 1
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