From 28b0bf72fb940dd1a21dd5945c16ebb6f7b63dba Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 10 Apr 2017 01:03:53 -0700 Subject: [PATCH] Plugin name should be the first trigger --- disco/bot/command.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/disco/bot/command.py b/disco/bot/command.py index 3d0398a..c5aaddf 100644 --- a/disco/bot/command.py +++ b/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)