aboutsummaryrefslogtreecommitdiff
path: root/modules/isgd.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-27 11:46:10 +0100
committerGravatar jesopo2018-09-27 11:46:10 +0100
commit8b0314b190b02f7e83fe0dae3c349ce4dffdcb4f (patch)
tree2481de34452598ff3d3ca579612a0fdc0dc0edc5 /modules/isgd.py
parentImplement @Utils.export, to denote an export on a module (diff)
signature
Use ModuleManager.BaseModule in more modules
Diffstat (limited to 'modules/isgd.py')
-rw-r--r--modules/isgd.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/isgd.py b/modules/isgd.py
index 6128ceb0..f55f17a7 100644
--- a/modules/isgd.py
+++ b/modules/isgd.py
@@ -1,13 +1,10 @@
import re
-from src import Utils
+from src import ModuleManager, Utils
ISGD_API_URL = "https://is.gd/create.php"
REGEX_URL = re.compile("https?://", re.I)
-class Module(object):
- def __init__(self, bot, events, exports):
- self.events = events
-
+class Module(ModuleManager.BaseModule):
@Utils.hook("get.shortlink")
def shortlink(self, event):
url = event["url"]