From 242b392f3cf5982e4b5e1487cec3c5f2182f1a9c Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 23 May 2016 18:08:40 +0200 Subject: first commit --- fischbot-wrapper.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 fischbot-wrapper.py (limited to 'fischbot-wrapper.py') diff --git a/fischbot-wrapper.py b/fischbot-wrapper.py new file mode 100755 index 0000000..b325ce3 --- /dev/null +++ b/fischbot-wrapper.py @@ -0,0 +1,31 @@ +import subprocess +import sys + +print sys.argv + +# SETUP +try: + nick = sys.argv[1] +except: + nick = 'fischbot' + +originalnick = nick + +try: + network = sys.argv[2] +except: + network = 'irc.afternet.org' + +try: + channel = sys.argv[3] +except: + channel = '#casiocalc' + +try: + port = sys.argv[4] +except: + port = 6667 + +while 1: + print 'Starting fischbot' + subprocess.check_call(['python', 'fischbot.py', str(nick), str(network), str(channel), str(port)]) \ No newline at end of file -- cgit v1.3.1