h/plugins/source.py

11 lines
204 B
Python
Raw Normal View History

2015-11-05 01:11:00 +00:00
import os
from util import hook
@hook.command
def source(inp):
2015-11-05 01:11:00 +00:00
if inp == "pull":
os.system("git pull")
return "updating..."
return "my source code: https://git.xeserv.us/xena/h"