added help strings where they were missing.

This commit is contained in:
jesopo 2016-03-29 14:37:35 +01:00
parent bf0e271546
commit 7de9970cd0
No known key found for this signature in database
GPG key ID: 0BBDEB2AEFCFFCB3
6 changed files with 10 additions and 6 deletions

View file

@ -8,7 +8,8 @@ class Module(object):
def __init__(self, bot): def __init__(self, bot):
self.bot = bot self.bot = bot
bot.events.on("received").on("command").on("in").hook( 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( bot.events.on("received").on("numeric").on("001").hook(
self.on_connect) self.on_connect)

View file

@ -9,7 +9,7 @@ class Module(object):
bot.events.on("received").on("message").on("channel").hook( bot.events.on("received").on("message").on("channel").hook(
self.channel_message) self.channel_message)
bot.events.on("received").on("command").on("karma").hook( 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): def new_user(self, event):
event["user"].last_karma = None event["user"].last_karma = None

View file

@ -3,7 +3,7 @@ import random
class Module(object): class Module(object):
def __init__(self, bot): def __init__(self, bot):
bot.events.on("received").on("command").on("random", 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): def random(self, event):
start, end = "1", "100" start, end = "1", "100"

View file

@ -12,7 +12,8 @@ class Module(object):
bot.events.on("received").on("command").on("set").hook( bot.events.on("received").on("command").on("set").hook(
self.set, help="Set a specified user setting") self.set, help="Set a specified user setting")
bot.events.on("received").on("command").on("channelset" 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): def _postboot_set(self, settings, event):
settings[event["setting"]] = {} settings[event["setting"]] = {}

View file

@ -8,7 +8,9 @@ class Module(object):
self.bot = bot self.bot = bot
bot.events.on("boot").on("done").hook(self.boot_done) bot.events.on("boot").on("done").hook(self.boot_done)
bot.events.on("received").on("command").on("nowwatching", 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): def boot_done(self, event):
self.bot.events.on("postboot").on("configure").on("set" self.bot.events.on("postboot").on("configure").on("set"

View file

@ -9,7 +9,7 @@ class Module(object):
def __init__(self, bot): def __init__(self, bot):
self.bot = bot self.bot = bot
bot.events.on("received").on("command").on("twitter", "tw" bot.events.on("received").on("command").on("twitter", "tw"
).hook(self.twitter) ).hook(self.twitter, help="Find a tweet")
def make_timestamp(self, s): def make_timestamp(self, s):
seconds_since = time.time()-datetime.datetime.strptime(s, seconds_since = time.time()-datetime.datetime.strptime(s,