CinematicGenius007
CinematicGenius007

Inside in the __init__ function of COG class `self.bot.coc.add_events(self.on_war_state_change)` and the function `@coc.WarEvents.state()` `async def on_war_state_change(self, prev_war, new_war: coc.ClanWar):` ` print(new_war.state)` The function was just for checking it, but it...
> Inside in the **init** function of COG class `self.bot.coc.add_events(self.on_war_state_change)` > > and the function `@coc.WarEvents.state()` `async def on_war_state_change(self, prev_war, new_war: coc.ClanWar):` ` print(new_war.state)` > > The function was just...