some new plugins (thx to _20h_)

This commit is contained in:
ChChBot admin 2015-02-18 22:44:57 +01:00
parent 63fc042027
commit 0ba2001b62
5 changed files with 346 additions and 0 deletions

13
disabled_stuff/freddy.py Normal file
View file

@ -0,0 +1,13 @@
from util import hook, http, web
from subprocess import check_output, CalledProcessError
@hook.command
def freddycode(inp):
"""freddycode <code> - Check if the Freddy Fresh code is correct."""
try:
return "Freddy: '%s' ist %s" % (inp, \
check_output(["/bin/freddycheck", inp]))
except CalledProcessError as err:
return "Freddy: Skript returned %s" % (str(err))