summaryrefslogtreecommitdiff
path: root/fischbot-wrapper.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-05-23 18:08:40 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2016-05-23 18:08:40 +0200
commit242b392f3cf5982e4b5e1487cec3c5f2182f1a9c (patch)
tree1cc8e9c0a517b384d9242dcfbd917d8b9afe7b21 /fischbot-wrapper.py
downloadfischbot-242b392f3cf5982e4b5e1487cec3c5f2182f1a9c.tar.gz
fischbot-242b392f3cf5982e4b5e1487cec3c5f2182f1a9c.zip
first commitHEADmaster
Diffstat (limited to 'fischbot-wrapper.py')
-rwxr-xr-xfischbot-wrapper.py31
1 files changed, 31 insertions, 0 deletions
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