diff --git a/lib/__pycache__/setup.cpython-36.pyc b/lib/__pycache__/setup.cpython-36.pyc index a0f63a4..bf55959 100755 Binary files a/lib/__pycache__/setup.cpython-36.pyc and b/lib/__pycache__/setup.cpython-36.pyc differ diff --git a/lib/setup.py b/lib/setup.py index c37ceec..4c4cbca 100755 --- a/lib/setup.py +++ b/lib/setup.py @@ -33,6 +33,7 @@ def environment(): externalIP = serverIP else: serverIP = os.environ['SERVER'] + externalIP = os.environ['EXTSERVER'] if str(settingList.index("Port")+1) in settingsChoice: port = input("Input your bot port here (If you don't know it, leave blank) > ") if port == "": diff --git a/templates/customTemplate.py b/templates/customTemplate.py index 018bd18..47b29f8 100755 --- a/templates/customTemplate.py +++ b/templates/customTemplate.py @@ -1 +1,16 @@ -#Test \ No newline at end of file +def customCode(inputMessage): + prefix = os.environ['PREFIX'] #This gets the prefix + if not inputMessage[:len(prefix)]: #Checks to see if the prefix is at the start of the message + return #If it isn't, ignore the rest of the code + '''Do not modify any code above this''' + + + if message == "example": + message = "This is an example of the custom code you can write" + elif message == "example2" + message = "This is also an example of the custom code you can write" + + + + '''Do not modify any code below this''' + return message #Send the message back to the main program \ No newline at end of file