Passed
Pull Request — main (#114)
by
unknown
01:30
created

say   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A SayCog.say() 0 3 1
1
from pincer import command
2
from pincer.objects import Embed, MessageContext
3
4
5
class SayCog:
6
    @command(description="Say something as the bot!")
7
    async def say(self, ctx: MessageContext, message: str):
8
        return Embed("", f"{ctx.author.user.mention} said:\n{message}")
9
10
11
setup = SayCog
12