Completed
Push — main ( e19468...44fb64 )
by Yohann
17s queued 12s
created

say.SayCog.say()   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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