GLaDOS/fun_cmnds.py

19 lines
521 B
Python

from irc_api import api
from irc_api.api import auto_help
@api.channel("#glados")
@api.on(lambda m: "blague" in m.text.lower())
def fun(bot, msg, *args):
bot.send(msg.to, "Mais je suis nuuuullle en blagues euh.")
@api.command("limite")
def history_limit(bot, msg, *args):
bot.send(msg.to, f"limite historique : {bot.history._History__limit}")
@api.user("Shadow15510")
@api.on(lambda m: "glados" in m.text.lower())
def agree(bot, msg, *args):
bot.send(msg.to, "Ouaip ! Complètement d'accord avec toi !")