Jelajahi Sumber

Making configuration a bit easier

Adding descriptions to the config nodes
ozzy2345 13 tahun lalu
induk
melakukan
e10c0b2033
1 mengubah file dengan 21 tambahan dan 2 penghapusan
  1. 21 2
      run.py

+ 21 - 2
run.py

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