diff options
| author | 2018-10-03 13:22:37 +0100 | |
|---|---|---|
| committer | 2018-10-03 13:22:37 +0100 | |
| commit | 69d58eede2e9bf83aa1ed1d8fcf956efde494726 (patch) | |
| tree | 11aa30f2a357f3be23ad97315dae3df051455cbe /modules/stats.py | |
| parent | Add a way to not add a user automatically in IRCServer.get_user (diff) | |
| signature | ||
Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
Diffstat (limited to 'modules/stats.py')
| -rw-r--r-- | modules/stats.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/stats.py b/modules/stats.py index 4da48709..38cb8cd3 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -1,17 +1,17 @@ import time -from src import ModuleManager, Utils +from src import ModuleManager, utils class Module(ModuleManager.BaseModule): - @Utils.hook("received.command.uptime") + @utils.hook("received.command.uptime") def uptime(self, event): """ :help: Show my uptime """ seconds = int(time.time()-self.bot.start_time) - event["stdout"].write("Uptime: %s" % Utils.to_pretty_time( + event["stdout"].write("Uptime: %s" % utils.to_pretty_time( seconds)) - @Utils.hook("received.command.stats") + @utils.hook("received.command.stats") def stats(self, event): """ :help: Show my network/channel/user stats |
