This commit is contained in:
un1xx committed 2025-04-16 22:25:35 +05:30
1 parent 48cacfbb9f
commit ec137c60c0
1 file changed
+3 -3
+3 -3
View File
@@ -39,7 +39,6 @@ class WarMonitor(commands.Cog):
bot_key_api_key=os.getenv("pnwACCKEY"),
aiohttp_session=aiohttp.ClientSession(loop=self.bot.loop),
)
self.war_check.start()
@commands.Cog.listener()
async def on_ready(self):
@@ -47,10 +46,11 @@ class WarMonitor(commands.Cog):
kit=self.kit,
model="war",
event="create",
callback=self.alliance_callback,
filters=None,
callbacks=self.war_logger,
)
async def alliance_callback(self, war: pnwkit.War):
async def war_logger(self, war: pnwkit.War):
# offensive wars
def url_button_view(war: pnwkit.War):