ExampleDerived   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A handle() 0 2 1
A post_init() 0 2 1
1
from event import Event
2
try:
3
  from basemodule import BaseModule
4
except ImportError:
5
  from modules.basemodule import BaseModule
6
class ExampleDerived(BaseModule):
7
  def post_init(self):
8
    pass
9
    #custom = Event("__.custom__")
10
    #custom.define(msg_definition="^\.custom")
11
    #custom.subscribe(self)
12
13
    # register ourself to our new custom event
14
    #self.bot.register_event(custom, self)
15
    
16
  def handle(self, event):
17
    pass
18
    #self.say(event.channel, "custom event caught!")
19