Skip to content
Permalink
Browse files
Added custom file template
  • Loading branch information
hollan84 committed May 3, 2020
1 parent e7caca9 commit fc56cf776e9e20234c62b6ee2e124d081250e3cb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Binary file not shown.
@@ -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 == "":
@@ -1 +1,16 @@
#Test
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

0 comments on commit fc56cf7

Please sign in to comment.