Browse Source

Merge pull request #4 from ozzy2345/master

Cleaning up and improving the config file
Moritz 13 năm trước cách đây
mục cha
commit
ea79e1dd8f
1 tập tin đã thay đổi với 23 bổ sung4 xóa
  1. 23 4
      run.py

+ 23 - 4
run.py

@@ -1,15 +1,34 @@
 #!/usr/bin/python
 #!/usr/bin/python
 import plaudereckenbot
 import plaudereckenbot
 import time
 import time
+
+# IP of the TS3 server
 IP = ""
 IP = ""
+
+# Query port of the TS3 server
 PORT = 10011
 PORT = 10011
+
+# Username for the query
 USERNAME = "serveradmin"
 USERNAME = "serveradmin"
+
+# Password for the user specified above
 PASSWORD = ""
 PASSWORD = ""
-DISPLAYNAME = "Plauderecken-Bot"
+
+# Displayname. Name visibible to the users
+DISPLAYNAME = ""
+
+# The ID of the virtual server to run on
 SID = 1
 SID = 1
-ORIGINALCHANNELS = [151, 152, 153]
-CHANNELLIST = [151, 152, 153] # == ORIGINALCHANNELS
-CPID = 54
+
+# Which channels should be treated as the original channels (Channel ids)
+CHANNELLIST = [1, 2, 3]
+
+# Channel ID of the parent channel. Created channels are children of this
+CPID = 1
+
+#########################################################################
+
+
 pBot = plaudereckenbot.pBot(IP, PORT, USERNAME, PASSWORD, DISPLAYNAME,
 pBot = plaudereckenbot.pBot(IP, PORT, USERNAME, PASSWORD, DISPLAYNAME,
     SID, CHANNELLIST, CPID)
     SID, CHANNELLIST, CPID)
 while 1:
 while 1: