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), ]
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), ]
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), ]
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), ]
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), ]
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), ]
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))
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), ]
def __init__(self, match_discord_channel: discord.Channel, 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.Channel self._match = match # type: Match self._current_race = None # type: Race self._last_begun_race = None # type: Race self._countdown_to_match_future = None # type: asyncio.Future self._current_race_number = None # type: typing.Optional[int] self._last_begun_race_number = None # type: typing.Optional[int] self._current_race_contested = False # type: bool self._match_race_data = None # type: typing.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.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.Timezone(self), cmd_user.Twitch(self), cmd_user.UserInfo(self), ] self._during_match_channel_commands = [ cmd_match.CancelRace(self), cmd_match.ChangeWinner(self), cmd_match.Contest(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_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.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_test.TestMatch(self), cmd_user.UserInfo(self), ] self.channel_commands = self._prematch_channel_commands