Passed
Push — main ( d14357...91d1d8 )
by
unknown
01:29
created

on_ready   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A OnReadyCog.on_ready() 0 5 1
A OnReadyCog.__init__() 0 2 1
1
from pincer import Client
2
3
4
class OnReadyCog:
5
    def __init__(self, client: Client):
6
        self.client = client
7
8
    @Client.event
9
    async def on_ready(self):
10
        print(
11
            f"Started client on {self.client.bot}\n"
12
            "Registered commands: " + ", ".join(self.client.chat_commands)
13
        )
14
15
16
setup = OnReadyCog
17