Fix game mode docstring parsing
This commit is contained in:
parent
4eaedea442
commit
017811b7db
@ -8319,10 +8319,7 @@ if botconfig.DEBUG_MODE or botconfig.ALLOWED_NORMAL_MODE_COMMANDS:
|
|||||||
if not args:
|
if not args:
|
||||||
return "Available game mode setters: " + ", ".join(var.GAME_MODES.keys())
|
return "Available game mode setters: " + ", ".join(var.GAME_MODES.keys())
|
||||||
elif args in var.GAME_MODES.keys():
|
elif args in var.GAME_MODES.keys():
|
||||||
if hasattr(var.GAME_MODES[args][0], "__doc__"):
|
return var.GAME_MODES[args][0].__doc__ or "Game mode {0} has no doc string".format(args)
|
||||||
return var.GAME_MODES[args][0].__doc__
|
|
||||||
else:
|
|
||||||
return "Game mode {0} has no doc string".format(args)
|
|
||||||
else:
|
else:
|
||||||
return "Game mode setter \u0002{0}\u0002 not found.".format(args)
|
return "Game mode setter \u0002{0}\u0002 not found.".format(args)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user