import random import src.settings as var from src.utilities import * from src import users, channels, debuglog, errlog, plog from src.decorators import command, event_listener from src.containers import UserList, UserSet, UserDict, DefaultUserDict from src.functions import get_players, get_all_players, get_main_role, get_target from src.messages import messages from src.status import try_misdirection, try_exchange from src.events import Event from src.cats import Cursed, Safe, Innocent, Wolf from src.roles.helper.seers import setup_variables SEEN = setup_variables("oracle") @command("see", chan=False, pm=True, playing=True, silenced=True, phases=("night",), roles=("oracle",)) def see(var, wrapper, message): """Use your paranormal powers to determine the role or alignment of a player.""" if wrapper.source in SEEN: wrapper.send(messages["seer_fail"]) return target = get_target(var, wrapper, re.split(" +", message)[0], not_self_message="no_see_self") if target is None: return target = try_misdirection(var, wrapper.source, target) if try_exchange(var, wrapper.source, target): return
import random import src.settings as var from src.utilities import * from src import users, channels, debuglog, errlog, plog from src.decorators import command, event_listener from src.containers import UserList, UserSet, UserDict, DefaultUserDict from src.functions import get_players, get_all_players, get_main_role, get_target from src.messages import messages from src.status import try_misdirection, try_exchange from src.events import Event from src.cats import Neutral, Wolfteam from src.roles.helper.seers import setup_variables SEEN = setup_variables("augur") @command("see", chan=False, pm=True, playing=True, silenced=True, phases=("night", ), roles=("augur", )) def see(var, wrapper, message): """Use your paranormal powers to determine the role or alignment of a player.""" if wrapper.source in SEEN: wrapper.send(messages["seer_fail"]) return
import random import src.settings as var from src.utilities import * from src import users, channels, debuglog, errlog, plog from src.decorators import command, event_listener from src.containers import UserList, UserSet, UserDict, DefaultUserDict from src.functions import get_players, get_all_players, get_main_role, get_target from src.messages import messages from src.events import Event from src.status import try_misdirection, try_exchange from src.cats import Cursed, Safe, Innocent, Wolf from src.roles.helper.seers import setup_variables SEEN = setup_variables("seer") @command("see", chan=False, pm=True, playing=True, silenced=True, phases=("night",), roles=("seer",)) def see(var, wrapper, message): """Use your paranormal powers to determine the role or alignment of a player.""" if wrapper.source in SEEN: wrapper.send(messages["seer_fail"]) return target = get_target(var, wrapper, re.split(" +", message)[0], not_self_message="no_see_self") if target is None: return target = try_misdirection(var, wrapper.source, target) if try_exchange(var, wrapper.source, target): return
import random import src.settings as var from src.utilities import * from src import users, channels, debuglog, errlog, plog from src.decorators import command, event_listener from src.containers import UserList, UserSet, UserDict, DefaultUserDict from src.functions import get_players, get_all_players, get_main_role, get_target from src.messages import messages from src.status import try_misdirection, try_exchange from src.events import Event from src.cats import Neutral, Wolfteam from src.roles.helper.seers import setup_variables SEEN = setup_variables("augur") @command("see", chan=False, pm=True, playing=True, silenced=True, phases=("night",), roles=("augur",)) def see(var, wrapper, message): """Use your paranormal powers to determine the role or alignment of a player.""" if wrapper.source in SEEN: wrapper.send(messages["seer_fail"]) return target = get_target(var, wrapper, re.split(" +", message)[0], not_self_message="no_see_self") if target is None: return target = try_misdirection(var, wrapper.source, target) if try_exchange(var, wrapper.source, target): return