Browse Source

added the role settings for 22 and 29 players

master
jcao219 13 years ago
parent
commit
42b7dd0994
  1. 2
      var.py
  2. 5
      wolfgame.py

2
var.py

@ -32,6 +32,8 @@ ROLES_GUIDE = { 4 : ( 1 , 1 , 0 , 0 , 0 , 0 , 0 @@ -32,6 +32,8 @@ ROLES_GUIDE = { 4 : ( 1 , 1 , 0 , 0 , 0 , 0 , 0
10 : ( 1 , 2 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 ), ##
11 : ( 1 , 2 , 1 , 1 , 1 , 1 , 1 , 0 , 1 , 0 ), ##
15 : ( 1 , 3 , 1 , 1 , 1 , 1 , 1 , 0 , 1 , 1 ), ##
22 : ( 1 , 4 , 1 , 1 , 1 , 1 , 1 , 0 , 1 , 1 ), ##
29 : ( 1 , 5 , 1 , 1 , 1 , 1 , 1 , 0 , 1 , 1 ), ##
None : ( 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 )} ##
#################################################################################################################
# Notes: ##

5
wolfgame.py

@ -88,7 +88,7 @@ def connect_callback(cli): @@ -88,7 +88,7 @@ def connect_callback(cli):
def mass_mode(cli, md):
""" Example: mass_mode((('+v', 'asdf'), ('-v','wobosd'))) """
""" Example: mass_mode(cli, (('+v', 'asdf'), ('-v','wobosd'))) """
lmd = len(md) # store how many mode changes to do
for start_i in range(0, lmd, 4): # 4 mode-changes at a time
if start_i + 4 > lmd: # If this is a remainder (mode-changes < 4)
@ -148,10 +148,9 @@ def forced_exit(cli, nick, *rest): # Admin Only @@ -148,10 +148,9 @@ def forced_exit(cli, nick, *rest): # Admin Only
"""Forces the bot to close"""
reset(cli)
print("Quitting in 5 seconds.")
dict.clear(COMMANDS)
dict.clear(PM_COMMANDS)
dict.clear(PM_COMMANDS)
dict.clear(HOOKS)
cli.quit("Forced quit from admin")
raise SystemExit

Loading…
Cancel
Save