🏡 index : ~doyle/dave.git

author dave <dave@ip-172-26-11-212.eu-west-2.compute.internal> 2019-03-30 14:51:51.0 +00:00:00
committer dave <dave@ip-172-26-11-212.eu-west-2.compute.internal> 2019-03-30 14:51:51.0 +00:00:00
commit
5ccc341a97f204f07ab8687cc76b2397d2ef2207 [patch]
tree
2ecf72a6eb392cc130cfae298ecd00e96d25bdfb
parent
ee18c0c8835e485f00777930d4fbc18fe2df8907
download
5ccc341a97f204f07ab8687cc76b2397d2ef2207.tar.gz

nice should be reserved for special occasions



Diff

 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")