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/quotes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/quotes.py') diff --git a/modules/quotes.py b/modules/quotes.py index 6bfe78d7..8ee1f561 100644 --- a/modules/quotes.py +++ b/modules/quotes.py @@ -1,5 +1,5 @@ import random, time -from src import ModuleManager, Utils +from src import ModuleManager, utils class Module(ModuleManager.BaseModule): def category_and_quote(self, s): @@ -7,7 +7,7 @@ class Module(ModuleManager.BaseModule): return [part.strip() for part in s.split("=", 1)] return None, None - @Utils.hook("received.command.quoteadd|qadd", min_args=1) + @utils.hook("received.command.quoteadd|qadd", min_args=1) def quote_add(self, event): """ :help: Add a quote to a category @@ -23,7 +23,7 @@ class Module(ModuleManager.BaseModule): else: event["stderr"].write("Please provide a category AND quote") - @Utils.hook("received.command.quoteget|qget", min_args=1) + @utils.hook("received.command.quoteget|qget", min_args=1) def quote_get(self, event): """ :help: Get a quote from a ccategory @@ -46,7 +46,7 @@ class Module(ModuleManager.BaseModule): event["stderr"].write("Please provide a category and a " "part of a quote to find") - @Utils.hook("received.command.quotedel|qdel", min_args=1) + @utils.hook("received.command.quotedel|qdel", min_args=1) def quote_del(self, event): """ :help: Delete a quote from a category @@ -71,7 +71,7 @@ class Module(ModuleManager.BaseModule): event["stderr"].write("Please provide a category and a quote " "to remove") - @Utils.hook("received.command.quote|q", min_args=1) + @utils.hook("received.command.quote|q", min_args=1) def quote(self, event): """ :help: Get a random quote from a category -- cgit v1.3.1-10-gc9f91