From 69d58eede2e9bf83aa1ed1d8fcf956efde494726 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 3 Oct 2018 13:22:37 +0100 Subject: Move src/Utils.py in to src/utils/, splitting functionality out in to modules of related functionality --- modules/quit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/quit.py') diff --git a/modules/quit.py b/modules/quit.py index 817bb041..0e823609 100644 --- a/modules/quit.py +++ b/modules/quit.py @@ -1,5 +1,5 @@ import random -from src import ModuleManager, Utils +from src import ModuleManager, utils QUOTES = { "You can build a throne with bayonets, but it's difficult to sit on it." : "Boris Yeltsin", @@ -56,7 +56,7 @@ QUOTES = { } class Module(ModuleManager.BaseModule): - @Utils.hook("get.quit-quote") + @utils.hook("get.quit-quote") def quote(self, event): quote = random.choice(list(QUOTES.items())) return (" - " if quote[1] else "").join(quote) -- cgit v1.3.1-10-gc9f91