added help strings where they were missing.
This commit is contained in:
parent
bf0e271546
commit
7de9970cd0
6 changed files with 10 additions and 6 deletions
|
@ -8,7 +8,8 @@ class Module(object):
|
|||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
bot.events.on("received").on("command").on("in").hook(
|
||||
self.in_command, min_args=2)
|
||||
self.in_command, min_args=2,
|
||||
help="Set a reminder")
|
||||
bot.events.on("received").on("numeric").on("001").hook(
|
||||
self.on_connect)
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ class Module(object):
|
|||
bot.events.on("received").on("message").on("channel").hook(
|
||||
self.channel_message)
|
||||
bot.events.on("received").on("command").on("karma").hook(
|
||||
self.karma)
|
||||
self.karma, help="Get your or someone else's karma")
|
||||
|
||||
def new_user(self, event):
|
||||
event["user"].last_karma = None
|
||||
|
|
|
@ -3,7 +3,7 @@ import random
|
|||
class Module(object):
|
||||
def __init__(self, bot):
|
||||
bot.events.on("received").on("command").on("random",
|
||||
"rand").hook(self.random)
|
||||
"rand").hook(self.random, help="Get a random number")
|
||||
|
||||
def random(self, event):
|
||||
start, end = "1", "100"
|
||||
|
|
|
@ -12,7 +12,8 @@ class Module(object):
|
|||
bot.events.on("received").on("command").on("set").hook(
|
||||
self.set, help="Set a specified user setting")
|
||||
bot.events.on("received").on("command").on("channelset"
|
||||
).hook(self.channel_set, channel_only=True)
|
||||
).hook(self.channel_set, channel_only=True,
|
||||
help="Set a specified setting for the current channel")
|
||||
|
||||
def _postboot_set(self, settings, event):
|
||||
settings[event["setting"]] = {}
|
||||
|
|
|
@ -8,7 +8,9 @@ class Module(object):
|
|||
self.bot = bot
|
||||
bot.events.on("boot").on("done").hook(self.boot_done)
|
||||
bot.events.on("received").on("command").on("nowwatching",
|
||||
"nw").hook(self.now_watching)
|
||||
"nw").hook(self.now_watching,
|
||||
help="Get what you or another user is now watching "
|
||||
"on trakt.tv")
|
||||
|
||||
def boot_done(self, event):
|
||||
self.bot.events.on("postboot").on("configure").on("set"
|
||||
|
|
|
@ -9,7 +9,7 @@ class Module(object):
|
|||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
bot.events.on("received").on("command").on("twitter", "tw"
|
||||
).hook(self.twitter)
|
||||
).hook(self.twitter, help="Find a tweet")
|
||||
|
||||
def make_timestamp(self, s):
|
||||
seconds_since = time.time()-datetime.datetime.strptime(s,
|
||||
|
|
Loading…
Reference in a new issue