test
This commit is contained in:
parent
e29ea1c613
commit
6035f1b1fc
2 changed files with 3 additions and 3 deletions
9
plugins/python.py
Normal file
9
plugins/python.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from util import hook
|
||||
from util.pyexec import eval_py
|
||||
|
||||
|
||||
@hook.command
|
||||
def python(inp):
|
||||
"""python <prog> -- Executes <prog> as Python code."""
|
||||
|
||||
return eval_py(inp)
|
Reference in a new issue