Commit c5b6ca9e authored by Mindiell's avatar Mindiell

No more fun for wantzel

parent 3d167196
#encoding: utf-8
"""
Fun commands.
"""
from random import choice
def fun(user, channel, message):
"""
This function is there to add some fun commands which could be not used easily.
"""
# Specific answer to Deltree, the animal's joke
if user.lower()=="deltree" and msg=="\_o< ~ Coin ~ >o_/":
animal = choice([
{
"left": """><((('>""",
"right": """<')))><""",
"sound": "blub",
},
{
"left": """=^..^=""",
"right": """=^..^=""",
"sound": "meow",
},
{
"left": """ˁ˚ᴥ˚ˀ""",
"right": """ˁ˚ᴥ˚ˀ""",
"sound": "wouf",
},
{
"left": """\_o<""",
"right": """>o_/""",
"sound": "coin",
},
{
"left": """^(*(oo)*)^""",
"right": """^(*(oo)*)^""",
"sound": "grouïk",
},
{
"left": """~~(__^·>""",
"right": """<·^__)~~""",
"sound": "yiik",
},
])
return "%s ~ %s ~ Deltree ~ %s ~ %s" % (
animal["left"],
animal["sound"],
animal["sound"],
animal["right"],
)
return ""
......@@ -17,7 +17,6 @@ from logs import Log
# bot modules
import helpers
from admin import Admin
from fun import fun
from monitor import Monitoring
from rp import Rp
......@@ -165,7 +164,6 @@ class Wantzel(object):
self.send_message(channel, "Test du timer en cours...")
else:
self.send_message(channel, result)
self.send_message(channel, fun(user, channel, msg))
def help(self, user, channel, msg):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment