Add help strings for stats.py
This commit is contained in:
parent
4502256263
commit
e113ec23d9
1 changed files with 2 additions and 2 deletions
|
@ -5,9 +5,9 @@ class Module(object):
|
||||||
self.boot_time = time.time()
|
self.boot_time = time.time()
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
bot.events.on("received").on("command").on("uptime"
|
bot.events.on("received").on("command").on("uptime"
|
||||||
).hook(self.uptime)
|
).hook(self.uptime, help="Show my uptime")
|
||||||
bot.events.on("received").on("command").on("stats"
|
bot.events.on("received").on("command").on("stats"
|
||||||
).hook(self.stats)
|
).hook(self.stats, help="Show my network/channel/user stats")
|
||||||
|
|
||||||
def uptime(self, event):
|
def uptime(self, event):
|
||||||
seconds = int(time.time()-self.boot_time)
|
seconds = int(time.time()-self.boot_time)
|
||||||
|
|
Loading…
Reference in a new issue