Add the ability to "disable" certain game modes
Players can't vote for disabled game modes, but they can still be forced with !fgame.
This commit is contained in:
parent
01a49b9aeb
commit
24d7c1ed5a
@ -24,6 +24,9 @@ ADMINS = ("unaffiliated/wolfbot_admin2", "unaffiliated/wolfbot_admin3") # glob
|
|||||||
OWNERS_ACCOUNTS = ("1owner_acc",)
|
OWNERS_ACCOUNTS = ("1owner_acc",)
|
||||||
ADMINS_ACCOUNTS = ("1admin_acc", "2admin_acc")
|
ADMINS_ACCOUNTS = ("1admin_acc", "2admin_acc")
|
||||||
|
|
||||||
|
# Players can't vote for these game modes, but they can still be forced with !fgame.
|
||||||
|
DISABLED_GAMEMODES = []
|
||||||
|
|
||||||
ALT_CHANNELS = ""
|
ALT_CHANNELS = ""
|
||||||
|
|
||||||
ALLOWED_ALT_CHANNELS_COMMANDS = []
|
ALLOWED_ALT_CHANNELS_COMMANDS = []
|
||||||
|
@ -7236,7 +7236,7 @@ def game(cli, nick, chan, rest):
|
|||||||
return
|
return
|
||||||
gamemode = match
|
gamemode = match
|
||||||
|
|
||||||
if gamemode != "roles":
|
if gamemode != "roles" and gamemode not in botconfig.DISABLED_GAMEMODES:
|
||||||
var.GAMEMODE_VOTES[nick] = gamemode
|
var.GAMEMODE_VOTES[nick] = gamemode
|
||||||
cli.msg(chan, "\002{0}\002 votes for the \002{1}\002 game mode.".format(nick, gamemode))
|
cli.msg(chan, "\002{0}\002 votes for the \002{1}\002 game mode.".format(nick, gamemode))
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user