示例#1
0
    def __init__(self):
        BotChannel.__init__(self)
        self.channel_commands = [
            # cmd_condor.Automatch(self),

            cmd_league.CloseAllMatches(self),
            cmd_league.CloseFinished(self),
            cmd_league.Deadline(self),
            cmd_league.DropRacer(self),
            cmd_league.GetCurrentEvent(self),
            cmd_league.GetMatchRules(self),
            cmd_league.MakeMatch(self),
            cmd_league.RegisterCondorEvent(self),
            cmd_league.SetCondorEvent(self),
            cmd_league.SetDeadline(self),
            cmd_league.SetEventName(self),
            cmd_league.SetMatchRules(self),

            cmd_sheet.GetGSheet(self),
            cmd_sheet.MakeFromSheet(self),
            cmd_sheet.SetGSheet(self),

            cmd_seedgen.RandomSeed(self),

            cmd_user.ForceRTMP(self),
            cmd_user.RTMP(self),
            cmd_user.UserInfo(self),
        ]
示例#2
0
 def __init__(self):
     BotChannel.__init__(self)
     self.channel_commands = [
         cmd_league.CloseAllMatches(self),
         cmd_league.CloseFinished(self),
         cmd_league.Deadline(self),
         cmd_league.DropRacer(self),
         cmd_league.ForceMakeMatch(self),
         cmd_league.GetCurrentEvent(self),
         cmd_league.GetMatchRules(self),
         cmd_league.MakeMatchesFromFile(self),
         cmd_league.RegisterCondorEvent(self),
         cmd_league.ScrubDatabase(self),
         cmd_league.SetCondorEvent(self),
         cmd_league.SetDeadline(self),
         cmd_league.SetEventName(self),
         cmd_league.SetMatchRules(self),
         cmd_sheet.GetGSheet(self),
         cmd_sheet.OverwriteGSheet(self),
         cmd_sheet.SetGSheet(self),
         cmd_seedgen.RandomSeed(self),
         cmd_speedrun.OverwriteSpeedrunGSheet(self),
         cmd_speedrun.SetSpeedrunGSheet(self),
         cmd_speedrun.Verify(self),
         cmd_user.ForceRTMP(self),
         cmd_user.RTMP(self),
         cmd_user.UserInfo(self),
         cmd_test.TestCreateCategory(self),
         cmd_test.TestOverwriteGSheet(self),
     ]
示例#3
0
    def __init__(self):
        BotChannel.__init__(self)
        self.channel_commands = [
            cmd_admin.Die(self),
            # cmd_admin.Reboot(self),
            cmd_color.ColorMe(self),

            # cmd_ladder.ForceRanked(self),
            # cmd_ladder.Ranked(self),
            # cmd_ladder.Rating(self),
            # cmd_ladder.Unranked(self),
            cmd_racemake.Make(self),
            cmd_racemake.MakeCondor(self),
            cmd_racemake.MakePrivate(self),
            cmd_racestats.Fastest(self),
            cmd_racestats.MostRaces(self),
            cmd_racestats.Stats(self),
            cmd_role.AddCRoWRole(self),
            cmd_role.RemoveCRoWRole(self),
            cmd_seedgen.RandomSeed(self),

            # cmd_speedrun.Submit(self),
            cmd_user.DailyAlert(self),
            cmd_user.RaceAlert(self),
            cmd_user.RTMP(self),
            cmd_user.SetInfo(self),
            cmd_user.Timezone(self),
            cmd_user.Twitch(self),
            cmd_user.ViewPrefs(self),
            cmd_user.UserInfo(self),
        ]
示例#4
0
 def __init__(self):
     BotChannel.__init__(self)
     self.channel_commands = [
         cmd_admin.Die(self),
         cmd_admin.Reboot(self),
         cmd_admin.RedoInit(self),
         cmd_daily.DailyChar(self),
         cmd_daily.DailyResubmit(self),
         cmd_daily.DailyRules(self),
         cmd_daily.DailySeed(self),
         cmd_daily.DailyStatus(self),
         cmd_daily.DailySubmit(self),
         cmd_daily.DailyUnsubmit(self),
         cmd_daily.DailyWhen(self),
         cmd_daily.ForceRunNewDaily(self),
         cmd_daily.ForceUpdateLeaderboard(self),
         cmd_racemake.Make(self),
         cmd_racemake.MakeCondor(self),
         cmd_racemake.MakePrivate(self),
         cmd_seedgen.RandomSeed(self),
         cmd_stats.Fastest(self),
         cmd_stats.MostRaces(self),
         cmd_stats.Stats(self),
         cmd_user.DailyAlert(self),
         cmd_user.RaceAlert(self),
         cmd_user.RTMP(self),
         cmd_user.SetInfo(self),
         cmd_user.Timezone(self),
         cmd_user.Twitch(self),
         cmd_user.ViewPrefs(self),
         cmd_user.UserInfo(self),
     ]
示例#5
0
 def __init__(self):
     BotChannel.__init__(self)
     self.channel_commands = [
         cmd_ladder.Automatch(self),
         cmd_ladder.CloseFinished(self),
         cmd_ladder.DropRacer(self),
         cmd_ladder.ForceRanked(self),
         cmd_seedgen.RandomSeed(self),
         cmd_racestats.Fastest(self),
         cmd_racestats.MostRaces(self),
         cmd_racestats.Stats(self),
         cmd_user.RTMP(self),
         cmd_user.UserInfo(self),
     ]
示例#6
0
 def __init__(self):
     BotChannel.__init__(self)
     self.channel_commands = [
         cmd_admin.Die(self),
         cmd_admin.RaiseException(self),
         cmd_admin.Reboot(self),
         cmd_admin.RedoInit(self),
         cmd_match.Vod(self),
         cmd_leaguestats.LeagueFastest(self),
         cmd_leaguestats.LeagueStats(self),
         cmd_user.SetInfo(self),
         cmd_user.Timezone(self),
         cmd_user.Twitch(self),
         cmd_user.UserInfo(self),
     ]
示例#7
0
 def __init__(self):
     BotChannel.__init__(self)
     self.channel_commands = [
         cmd_admin.Die(self),
         cmd_admin.Reboot(self),
         cmd_admin.RedoInit(self),
         cmd_league.NextRace(self),
         cmd_match.Cawmentate(self),
         cmd_match.Uncawmentate(self),
         cmd_leaguestats.LeagueFastest(self),
         cmd_leaguestats.LeagueStats(self),
         cmd_user.SetInfo(self),
         cmd_user.Timezone(self),
         cmd_user.Twitch(self),
         cmd_user.UserInfo(self),
     ]
示例#8
0
 def __init__(self):
     BotChannel.__init__(self)
     self.channel_commands = [
         cmd_admin.Die(self),
         cmd_admin.Reboot(self),
         cmd_admin.RedoInit(self),
         cmd_racestats.Fastest(self),
         cmd_racestats.MostRaces(self),
         cmd_racestats.Stats(self),
         cmd_user.RaceAlert(self),
         cmd_user.SetInfo(self),
         cmd_user.Timezone(self),
         cmd_user.Twitch(self),
         cmd_user.ViewPrefs(self),
         cmd_user.UserInfo(self),
     ]
示例#9
0
    def __init__(self, race_discord_channel, race_info):
        BotChannel.__init__(self)
        self._channel = race_discord_channel  # The necrobot in which this race is taking place
        self._race_info = race_info  # The type of races to be run in this room

        self._current_race = None  # The current race
        self._previous_race = None  # The previous race

        self._race_number = 0  # The number of races we've done
        self._mention_on_new_race = [
        ]  # A list of users that should be @mentioned when a rematch is created
        self._mentioned_users = [
        ]  # A list of users that were @mentioned when this race was created
        self._nopoke = False  # When True, the .poke command fails

        self.channel_commands = [
            cmd_race.Enter(self),
            cmd_race.Unenter(self),
            cmd_race.Ready(self),
            cmd_race.Unready(self),
            cmd_race.Done(self),
            cmd_race.Undone(self),
            cmd_race.Forfeit(self),
            cmd_race.Unforfeit(self),
            cmd_race.Comment(self),
            cmd_race.Death(self),
            cmd_race.Igt(self),
            cmd_race.Time(self),
            cmd_race.ForceForfeit(self),
            cmd_race.ForceForfeitAll(self),
            cmd_race.Pause(self),
            cmd_race.Unpause(self),
            cmd_race.Reseed(self),
            cmd_race.ChangeRules(self),
            cmd_publicrace.Rematch(self),
            cmd_publicrace.Kick(self),
            # cmd_publicrace.DelayRecord(self),
            cmd_publicrace.Notify(self),
            cmd_publicrace.Unnotify(self),
            cmd_publicrace.Missing(self),
            cmd_publicrace.Shame(self),
            cmd_publicrace.Poke(self),
            cmd_publicrace.ForceCancel(self),
            cmd_publicrace.ForceClose(self),
            cmd_test.TestRace(self),
        ]
示例#10
0
 def __init__(self):
     BotChannel.__init__(self)
     self.channel_commands = [
         # cmd_ladder.LadderLeaderboard(self),
         cmd_ladder.Ranked(self),
         cmd_ladder.Rating(self),
         # cmd_ladder.SetAutomatch(self),
         cmd_ladder.Unranked(self),
         cmd_league.NextRace(self),
         cmd_league.Cawmentate(self),
         cmd_league.Uncawmentate(self),
         cmd_leaguestats.LeagueFastest(self),
         cmd_leaguestats.LeagueStats(self),
         cmd_user.SetInfo(self),
         cmd_user.Timezone(self),
         cmd_user.Twitch(self),
         cmd_user.UserInfo(self),
     ]
示例#11
0
    def __init__(self):
        BotChannel.__init__(self)
        self.channel_commands = [
            cmd_league.CloseAllMatches(self),
            cmd_league.CloseFinished(self),
            # cmd_league.GetCurrentEvent(self),
            # cmd_league.GetMatchRules(self),
            cmd_event.ScrubDatabase(self),
            cmd_event.SetCondorEvent(self),
            # cmd_league.SetEventName(self),
            cmd_league.SetMatchRules(self),

            # cmd_ladder.Automatch(self),
            # cmd_ladder.DropRacer(self),
            cmd_ladder.ForceRanked(self),
            # cmd_ladder.ForceUnranked(self),
            cmd_seedgen.RandomSeed(self),
            cmd_leaguestats.LeagueFastest(self),
            cmd_leaguestats.LeagueStats(self),
            cmd_user.RTMP(self),
            cmd_user.UserInfo(self),
        ]
示例#12
0
 def __init__(self):
     BotChannel.__init__(self)
     self.channel_commands = [
         cmd_league.CloseAllMatches(self),
         cmd_league.CloseFinished(self),
         cmd_league.Deadline(self),
         cmd_league.DropRacer(self),
         cmd_league.GetCurrentEvent(self),
         cmd_league.GetMatchRules(self),
         cmd_league.MakeMatch(self),
         cmd_league.RegisterCondorEvent(self),
         cmd_league.ScrubDatabase(self),
         cmd_league.SetCondorEvent(self),
         cmd_league.SetDeadline(self),
         cmd_league.SetEventName(self),
         cmd_league.SetMatchRules(self),
         cmd_sheet.GetGSheet(self),
         cmd_sheet.MakeFromSheet(self),
         cmd_sheet.SetGSheet(self),
         cmd_user.UserInfo(self),
         cmd_test.TestCreateCategory(self)
     ]
示例#13
0
    def __init__(self, ladder=False):
        BotChannel.__init__(self)

        self.channel_commands = [
            cmd_admin.Die(self),
            cmd_admin.RedoInit(self),
            cmd_league.NextRace(self),
            cmd_match.Cawmentate(self),
            cmd_match.Uncawmentate(self),
            cmd_leaguestats.LeagueFastest(self),
            cmd_leaguestats.LeagueStats(self),

            # cmd_speedrun.Submit(self),
            cmd_user.RTMP(self),
            cmd_user.SetInfo(self),
            cmd_user.Timezone(self),
            cmd_user.Twitch(self),
            cmd_user.UserInfo(self),
        ]

        if ladder:
            self.channel_commands.append(cmd_league.MakeMatch(self))
示例#14
0
    def __init__(self):
        BotChannel.__init__(self)
        self.channel_commands = [
            cmd_admin.Die(self),
            cmd_admin.RedoInit(self),
            cmd_racemake.Make(self),
            cmd_racemake.MakeCondor(self),
            cmd_racemake.MakePrivate(self),
            cmd_racestats.Fastest(self),
            cmd_racestats.MostRaces(self),
            cmd_racestats.Stats(self),
            cmd_seedgen.RandomSeed(self),

            # cmd_speedrun.Submit(self),
            cmd_user.DailyAlert(self),
            cmd_user.RaceAlert(self),
            cmd_user.RTMP(self),
            cmd_user.SetInfo(self),
            cmd_user.Timezone(self),
            cmd_user.Twitch(self),
            cmd_user.ViewPrefs(self),
            cmd_user.UserInfo(self),
        ]
示例#15
0
    def __init__(self, match_discord_channel: discord.TextChannel,
                 match: Match):
        """BotChannel where a match is taking place.
        
        Parameters
        ----------
        match_discord_channel: discord.Channel
            The discord channel corresponding to this BotChannel.
        match: Match
            The Match object for the match.
        """
        BotChannel.__init__(self)
        self._channel = match_discord_channel  # type: discord.TextChannel
        self._match = match  # type: Match

        self._current_race = None  # type: Optional[Race]
        self._last_begun_race = None  # type: Optional[Race]

        self._countdown_to_match_future = None  # type: Optional[asyncio.Future]

        self._current_race_number = None  # type: Optional[int]

        self._last_begun_race_number = None  # type: Optional[int]
        self._current_race_contested = False  # type: bool

        self._match_race_data = None  # type: Optional[MatchRaceData]

        self._prematch_channel_commands = [
            cmd_match.Confirm(self),
            cmd_match.GetMatchInfo(self),
            cmd_match.Suggest(self),
            cmd_match.Unconfirm(self),
            cmd_match.ForceBegin(self),
            cmd_match.ForceCancelMatch(self),
            cmd_match.ForceConfirm(self),
            cmd_match.ForceReschedule(self),
            cmd_match.Postpone(self),
            cmd_match.RebootRoom(self),
            cmd_match.SetMatchType(self),
            cmd_match.Update(self),
            cmd_test.TestMatch(self),
            cmd_user.UserInfo(self),
        ]

        self._during_match_channel_commands = [
            cmd_match.CancelRace(self),
            cmd_match.ChangeWinner(self),
            cmd_match.Contest(self),
            cmd_match.ForceCancelMatch(self),
            cmd_match.ForceNewRace(self),
            cmd_match.ForceRecordRace(self),
            cmd_match.GetMatchInfo(self),
            cmd_match.Postpone(self),
            cmd_match.RebootRoom(self),
            cmd_match.SetMatchType(self),
            cmd_match.Update(self),
            cmd_race.Ready(self),
            cmd_race.Unready(self),
            cmd_race.Done(self),
            cmd_race.Undone(self),
            cmd_race.Time(self),
            cmd_race.Pause(self),
            cmd_race.Unpause(self),
            cmd_race.Reseed(self),
            cmd_race.ChangeRules(self),
            cmd_test.TestMatch(self),
            cmd_user.UserInfo(self),
        ]

        self._postmatch_channel_commands = [
            cmd_match.CancelRace(self),
            cmd_match.ChangeWinner(self),
            cmd_match.Contest(self),
            cmd_match.ForceCancelMatch(self),
            cmd_match.ForceCloseRoom(self),
            cmd_match.ForceNewRace(self),
            cmd_match.ForceRecordRace(self),
            cmd_match.GetMatchInfo(self),
            cmd_match.Postpone(self),
            cmd_match.RebootRoom(self),
            cmd_match.SetMatchType(self),
            cmd_match.Update(self),
            cmd_race.ChangeRules(self),
            cmd_test.TestMatch(self),
            cmd_user.UserInfo(self),
        ]

        self.channel_commands = self._prematch_channel_commands