mirror of https://gitlab.com/bashrc2/epicyon
If there is no moderators file then create it
parent
9938be63bf
commit
57f1b99a85
3
roles.py
3
roles.py
|
@ -34,6 +34,9 @@ def addModerator(baseDir: str,nickname: str):
|
|||
moderator=moderator.strip('\n')
|
||||
if len(moderator)>1:
|
||||
f.write(moderator+'\n')
|
||||
else:
|
||||
with open(moderatorsFile, "w+") as f:
|
||||
f.write(nickname+'\n')
|
||||
|
||||
def removeModerator(baseDir: str,nickname: str):
|
||||
"""Removes a moderator nickname from the file
|
||||
|
|
Loading…
Reference in New Issue