Also, added --no-prompt command line option in last commit. When started
with it, Red will ignore new modules. Useful when it's hosted on
servers.
This commit is contained in:
Twentysix 2016-02-13 15:02:00 +01:00
parent dc0bf207b8
commit 8ef6853f28

2
red.py
View File

@ -272,7 +272,7 @@ def check_configs():
print("\nChoose a prefix (or multiple ones, one at once) for the commands. Type exit when you're done. Example prefix: !") print("\nChoose a prefix (or multiple ones, one at once) for the commands. Type exit when you're done. Example prefix: !")
settings["PREFIXES"] = [] settings["PREFIXES"] = []
new_prefix = "" new_prefix = ""
while new_prefix.lower() != "exit" and settings["PREFIXES"] != []: while new_prefix.lower() != "exit" or settings["PREFIXES"] == []:
new_prefix = input("Prefix> ") new_prefix = input("Prefix> ")
if new_prefix.lower() != "exit" and new_prefix != "": if new_prefix.lower() != "exit" and new_prefix != "":
settings["PREFIXES"].append(new_prefix) settings["PREFIXES"].append(new_prefix)