Commit 0868d5fe authored by Mindiell's avatar Mindiell

Un peu de stupidité n'a jamais fait de mal à personne <3

parent aaf55585
Pipeline #42 skipped
......@@ -109,4 +109,9 @@ messages = {
"wiki_update":
"""%s a mis à jour la page "%s" sur le wiki (%s)""",
"coin_deltree":
"""%s ~ %s ~ Deltree ~ %s ~ %s""",
}
......@@ -6,6 +6,7 @@ License : AGPLv3
Doc : https://wiki.laquadrature.net/Wantzel
"""
import random
import re
import sqlite3
import time
......@@ -26,6 +27,39 @@ INFO = 1
ERROR = 0
LOG_LEVEL = DEBUG
animals = [
{
"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",
},
]
class Utils(object):
"""
Simple utility class to log easily.
......@@ -295,6 +329,14 @@ class Wantzel(object):
elif command == "admin":
Utils.debug("Calling self.admin")
self.admin(user, channel, msg)
if user=="Deltree" and msg=="\_o< ~ Coin ~ >o_/":
animal = random.choice(animals)
self.send_message(channel, messages["coin_deltree"] % (
animal["left"],
animal["sound"],
animal["sound"],
animal["right"],
))
# No more giving the title of an url
#if title and website:
# self.send_message(channel, messages["title"] % (title, website))
......
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