From ac1eef729c929749413cdee31d8ab4643260b7d5 Mon Sep 17 00:00:00 2001 From: dngfx Date: Sat, 8 Sep 2018 16:15:43 +0100 Subject: New and fresh ducks.py! And an 8ball.py adjustment...! --- modules/8ball.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/8ball.py') diff --git a/modules/8ball.py b/modules/8ball.py index 39e786e0..1c058a28 100644 --- a/modules/8ball.py +++ b/modules/8ball.py @@ -1,4 +1,5 @@ import random +import Utils CHOICES = [ "Definitely", @@ -26,4 +27,5 @@ class Module(object): ) def decide(selfs, event): - event["stdout"].write(random.choice(CHOICES)) + event["stdout"].write("You shake the magic ball... it " + "says " + Utils.bold(random.choice(CHOICES))) -- cgit v1.3.1-10-gc9f91 From 54c9616d4c72c8c8985f4753b2ea780e04c6d71f Mon Sep 17 00:00:00 2001 From: dngfx Date: Sat, 8 Sep 2018 17:02:03 +0100 Subject: 8ball answer updates and ducks.py fix. --- modules/8ball.py | 7 ++++++- modules/ducks.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'modules/8ball.py') diff --git a/modules/8ball.py b/modules/8ball.py index 1c058a28..f32b9a5a 100644 --- a/modules/8ball.py +++ b/modules/8ball.py @@ -14,7 +14,12 @@ CHOICES = [ "The answer is unclear", "Absolutely", "Dubious at best", - "I'm on a break, ask again later" + "I'm on a break, ask again later", + "As I see it, yes", + "It is certain", + "Naturally", + "Reply hazy, try again later", + Utils.color(4) + Utils.underline("DO NOT WASTE MY TIME") ] class Module(object): diff --git a/modules/ducks.py b/modules/ducks.py index 31a7fbe9..a3b3c80f 100644 --- a/modules/ducks.py +++ b/modules/ducks.py @@ -79,7 +79,7 @@ class Module(object): if hasattr(channel, 'games') == False: return False - if hasattr(channel["games"], 'ducks') == False: + if "ducks" not in channel.games.keys(): return False return True -- cgit v1.3.1-10-gc9f91 From 03b41c3d49dab6b97afbc0b5631c16f71dcc971c Mon Sep 17 00:00:00 2001 From: dngfx Date: Sat, 8 Sep 2018 17:19:52 +0100 Subject: More 8ball answers. --- modules/8ball.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules/8ball.py') diff --git a/modules/8ball.py b/modules/8ball.py index f32b9a5a..9c6e5d1a 100644 --- a/modules/8ball.py +++ b/modules/8ball.py @@ -19,7 +19,13 @@ CHOICES = [ "It is certain", "Naturally", "Reply hazy, try again later", - Utils.color(4) + Utils.underline("DO NOT WASTE MY TIME") + Utils.color(4) + Utils.underline("DO NOT WASTE MY TIME"), + "Hmm... Could be!", + "I'm leaning towards no", + "Without a doubt", + "Sources say no", + "Sources say yes", + "Sources say maybe" ] class Module(object): -- cgit v1.3.1-10-gc9f91