#-*- coding:Utf-8 -*- __module_name__ = "stats scipt" __module_version__ = "1.0.0" __module_description__ = "afficher les stats du serveur" import xchat print "\0034",__module_name__, __module_version__," actif\003" def fonction_stats(word, word_eol, userdata): xchat.command("say !stats") xchat.command("say voici les stats du serveur MS.ircboc.org") xchat.command("SYSINFO") xchat.command("ETHER eth0") xchat.command("NETSTREAM eth0") xchat.command("NETDATA eth0") xchat.hook_command("stats", fonction_stats)