diff --git a/the_prestige.py b/the_prestige.py index 74ee121..9b147fc 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -2265,10 +2265,7 @@ async def league_day_watcher(channel, league, games_list, filter_url, last = Fal wait_seconds = (next_start - now).seconds leagues.save_league(league) - if league in active_standings.keys(): - await active_standings[league].unpin() active_standings[league] = await channel.send(embed=league.standings_embed()) - active_standings[league].pin() await channel.send(f"The day {league.day} games for the {league.name} will start in {math.ceil(wait_seconds/60)} minutes.") await asyncio.sleep(wait_seconds) await channel.send(f"A {league.name} series is continuing now at {filter_url}") @@ -2276,11 +2273,8 @@ async def league_day_watcher(channel, league, games_list, filter_url, last = Fal else: league.active = False - if league.autoplay <= 0 or config()["game_freeze"]: #if number of series to autoplay has been reached - if league in active_standings.keys(): - await active_standings[league].unpin() + if league.autoplay == 0 or config()["game_freeze"]: #if number of series to autoplay has been reached active_standings[league] = await channel.send(embed=league.standings_embed()) - active_standings[league].pin() await channel.send(f"The {league.name} is no longer autoplaying.") if config()["game_freeze"]: await channel.send("Patch incoming.") diff --git a/weather.py b/weather.py index 49a5d73..b1ed3fc 100644 --- a/weather.py +++ b/weather.py @@ -157,7 +157,7 @@ class ThinnedVeil(Weather): def modify_atbat_message(self, game, state): if "veil" in game.last_update[0].keys(): state["update_emoji"] = self.emoji - state["update_text"] += f" {game.last_update[0]['batter']}'s will manifests on {base_string(game.last_update[1])} base." + state["update_text"] += f"{game.last_update[0]['batter']}'s will manifests on {base_string(game.last_update[1])} base." class HeatWave(Weather): def __init__(self,game): @@ -197,7 +197,7 @@ class HeatWave(Weather): original, sub = self.swapped_pitcher_data self.swapped_pitcher_data = None state["update_emoji"] = self.emoji - state["update_text"] += f' {original} is exhausted from the heat. {sub} is forced to pitch!' + state["update_text"] += f'{original} is exhausted from the heat. {sub} is forced to pitch!'