Changed the string formatter from % to f"",

Fixed a bug related to logging [log dir does not exist on master, and needs to get created on first startup]
Added !prefadmin <user> to view preferences of players, and change them
Orgrank & name will be hidden in !alts, if the character is not in an org
Page prefix & suffix are now being relayed [for example, it affects !online
Fixed !perks
Added comments regarding external API's.
This commit is contained in:
2021-08-14 02:36:20 +02:00
parent 80b5a4b577
commit 46d0ba3634
19 changed files with 104 additions and 86 deletions
+6 -1
View File
@@ -18,8 +18,13 @@ name = "bot"
# So we're saving the logs into ./logs/##bot_name##/
if len(sys.argv) > 1:
name = sys.argv[1]
try:
os.mkdir(f"./logs/{name}")
os.mkdir(f"./logs", mode=4600)
except FileExistsError as error:
pass
try:
os.mkdir(f"./logs/{name}", mode=4600)
except FileExistsError as error:
pass