From 5ccc341a97f204f07ab8687cc76b2397d2ef2207 Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 30 Mar 2019 14:51:51 +0000 Subject: [PATCH] nice should be reserved for special occasions --- dave/modules/nice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dave/modules/nice.py b/dave/modules/nice.py index 3a40deb..f26454a 100644 --- a/dave/modules/nice.py +++ a/dave/modules/nice.py @@ -1,10 +1,12 @@ # -*- coding: utf-8 -*- """Nice.""" import dave.module +import random @dave.module.help("Nice.", name="nice") @dave.module.match(r"^nice\.?$") @dave.module.priority(dave.module.Priority.LOW) def nice(bot, args, sender, source): - bot.msg(source, "nice") + if random.randint(1, 100) <= 10: + bot.msg(source, "nice") -- rgit 0.1.3