Browse Source

Plugin name should be the first trigger

pull/18/head
Andrei 8 years ago
parent
commit
28b0bf72fb
  1. 4
      disco/bot/command.py

4
disco/bot/command.py

@ -140,6 +140,10 @@ class Command(object):
self.update(*args, **kwargs)
@property
def name(self):
return self.triggers[0]
def __call__(self, *args, **kwargs):
return self.func(*args, **kwargs)

Loading…
Cancel
Save