diff --git a/modules/bitly.py b/modules/bitly.py index b0aa5d7b..ac7835a1 100644 --- a/modules/bitly.py +++ b/modules/bitly.py @@ -11,7 +11,8 @@ class Module(object): self.bot = bot bot.events.on("get").on("shortlink").hook(self.shortlink) bot.events.on("received").on("command").on("shorten" - ).hook(self.shorten, min_args=1) + ).hook(self.shorten, min_args=1, help="Shorten a URL.", + usage="") def shortlink(self, event): url = event["url"] diff --git a/modules/books.py b/modules/books.py index c78e381f..1d9c9f4c 100644 --- a/modules/books.py +++ b/modules/books.py @@ -11,10 +11,10 @@ class Module(object): self.bot = bot bot.events.on("received").on("command").on("isbn").hook( self.isbn, help="Get book information from a provided ISBN", - min_args=1) + min_args=1, usage="") bot.events.on("received").on("command").on("book").hook( self.book, help="Get book information from a provided title", - min_args=1) + min_args=1, usage="") def get_book(self, query, event): page = Utils.get_url(URL_GOOGLEBOOKS, get_params={ diff --git a/modules/commands.py b/modules/commands.py index a274ce2a..306a79ed 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -47,9 +47,10 @@ class Module(object): bot.events.on("received").on("message").on("private").hook( self.private_message) bot.events.on("received").on("command").on("help").hook(self.help, - help="Show help for commands") + help="Show help for commands", usage="") bot.events.on("received").on("command").on("usage").hook(self.usage, - help="Show usage help for commands", min_args=1) + help="Show usage help for commands", min_args=1, + usage="") bot.events.on("received").on("command").on("more").hook(self.more, help="Get more output from the last command") bot.events.on("new").on("user", "channel").hook(self.new) diff --git a/modules/define.py b/modules/define.py index 19a590fb..b452e0fa 100644 --- a/modules/define.py +++ b/modules/define.py @@ -8,7 +8,8 @@ class Module(object): def __init__(self, bot): self.bot = bot bot.events.on("received").on("command").on("define").hook( - self.define, help="Define a provided term") + self.define, help="Define a provided term", + usage="") def define(self, event): if event["args"]: diff --git a/modules/dns.py b/modules/dns.py index 95c1b80c..2935e1bf 100644 --- a/modules/dns.py +++ b/modules/dns.py @@ -5,7 +5,8 @@ class Module(object): def __init__(self, bot): bot.events.on("received").on("command").on("dns").hook( self.dns, min_args=1, - help="Get all addresses for a given hostname (IPv4/IPv6)") + help="Get all addresses for a given hostname (IPv4/IPv6)", + usage="") def dns(self, event): hostname = event["args_split"][0] diff --git a/modules/geoip.py b/modules/geoip.py index a3c5db2d..7615575c 100644 --- a/modules/geoip.py +++ b/modules/geoip.py @@ -7,7 +7,8 @@ class Module(object): def __init__(self, bot): bot.events.on("received").on("command").on("geoip").hook( self.geoip, min_args=1, - help="Get geoip data on a given IPv4/IPv6 address") + help="Get geoip data on a given IPv4/IPv6 address", + usage="") def geoip(self, event): page = Utils.get_url(URL_GEOIP % event["args_split"][0], diff --git a/modules/google.py b/modules/google.py index d391de7f..237a1c58 100644 --- a/modules/google.py +++ b/modules/google.py @@ -9,7 +9,8 @@ class Module(object): def __init__(self, bot): self.bot = bot bot.events.on("received").on("command").on("google", - "g").hook(self.google, help="Google feeling lucky") + "g").hook(self.google, help="Google feeling lucky", + usage="[search term]") def google(self, event): phrase = event["args"] or event["log"].get() diff --git a/modules/haveibeenpwned.py b/modules/haveibeenpwned.py index e2d13b4d..ed4817e0 100644 --- a/modules/haveibeenpwned.py +++ b/modules/haveibeenpwned.py @@ -8,7 +8,7 @@ class Module(object): bot.events.on("received").on("command").on("beenpwned").hook( self.beenpwned, min_args=1, help="Find out if a username, email or similar has appeared " - "in any hacked databased") + "in any hacked databased", usage="") def beenpwned(self, event): page = Utils.get_url(URL_HAVEIBEENPWNEDAPI % event["args"], json=True, diff --git a/modules/imdb.py b/modules/imdb.py index 62492bc7..0c03556a 100644 --- a/modules/imdb.py +++ b/modules/imdb.py @@ -9,7 +9,8 @@ class Module(object): def __init__(self, bot): bot.events.on("received").on("command").on("imdb").hook( self.imdb, min_args=1, - help="Search for a given title on IMDb") + help="Search for a given title on IMDb", + usage="") def imdb(self, event): page = Utils.get_url(URL_OMDB, get_params={"t": event["args"]}, diff --git a/modules/in.py b/modules/in.py index 97ec1cc6..79094eb1 100644 --- a/modules/in.py +++ b/modules/in.py @@ -9,7 +9,7 @@ class Module(object): self.bot = bot bot.events.on("received").on("command").on("in").hook( self.in_command, min_args=2, - help="Set a reminder") + help="Set a reminder", usage="