mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 04:08:56 -05:00
Further restrictions to owner ID configuration
This commit is contained in:
parent
a43b972dc3
commit
3b2ec421a6
3
red.py
3
red.py
@ -371,7 +371,8 @@ def check_configs():
|
|||||||
print("If you want, you can also do it later with [prefix]set owner. Leave empty in that case.")
|
print("If you want, you can also do it later with [prefix]set owner. Leave empty in that case.")
|
||||||
settings.owner = input("\nID> ")
|
settings.owner = input("\nID> ")
|
||||||
if settings.owner == "": settings.owner = "id_here"
|
if settings.owner == "": settings.owner = "id_here"
|
||||||
if not settings.owner.isdigit() and settings.owner != "id_here":
|
if not settings.owner.isdigit() or len(settings.owner) < 17:
|
||||||
|
if settings.owner != "id_here":
|
||||||
print("\nERROR: What you entered is not a valid ID. Set yourself as owner later with [prefix]set owner")
|
print("\nERROR: What you entered is not a valid ID. Set yourself as owner later with [prefix]set owner")
|
||||||
settings.owner = "id_here"
|
settings.owner = "id_here"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user