diff options
| author | 2018-10-03 13:22:37 +0100 | |
|---|---|---|
| committer | 2018-10-03 13:22:37 +0100 | |
| commit | 69d58eede2e9bf83aa1ed1d8fcf956efde494726 (patch) | |
| tree | 11aa30f2a357f3be23ad97315dae3df051455cbe /modules/8ball.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/8ball.py')
| -rw-r--r-- | modules/8ball.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/8ball.py b/modules/8ball.py index 60cdb261..1aa7df12 100644 --- a/modules/8ball.py +++ b/modules/8ball.py @@ -1,5 +1,5 @@ import random -from src import ModuleManager, Utils +from src import ModuleManager, utils CHOICES = [ "Definitely", @@ -19,7 +19,8 @@ CHOICES = [ "It is certain", "Naturally", "Reply hazy, try again later", - Utils.underline(Utils.color("DO NOT WASTE MY TIME", Utils.COLOR_RED)), + utils.irc.underline(utils.irc.color("DO NOT WASTE MY TIME", + utils.irc.COLOR_RED)), "Hmm... Could be!", "I'm leaning towards no", "Without a doubt", @@ -29,11 +30,11 @@ CHOICES = [ ] class Module(ModuleManager.BaseModule): - @Utils.hook("received.command.8ball", min_args=1) + @utils.hook("received.command.8ball", min_args=1) def decide(selfs, event): """ :help: Ask the mystic 8ball a question! :usage: <question> """ event["stdout"].write("You shake the magic ball... it " - "says " + Utils.bold(random.choice(CHOICES))) + "says " + utils.irc.bold(random.choice(CHOICES))) |
