update
This commit is contained in:
1 parent
48cacfbb9f
commit
ec137c60c0
1 file changed
+3
-3
+3
-3
@@ -39,7 +39,6 @@ class WarMonitor(commands.Cog):
|
|||||||
bot_key_api_key=os.getenv("pnwACCKEY"),
|
bot_key_api_key=os.getenv("pnwACCKEY"),
|
||||||
aiohttp_session=aiohttp.ClientSession(loop=self.bot.loop),
|
aiohttp_session=aiohttp.ClientSession(loop=self.bot.loop),
|
||||||
)
|
)
|
||||||
self.war_check.start()
|
|
||||||
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_ready(self):
|
async def on_ready(self):
|
||||||
@@ -47,10 +46,11 @@ class WarMonitor(commands.Cog):
|
|||||||
kit=self.kit,
|
kit=self.kit,
|
||||||
model="war",
|
model="war",
|
||||||
event="create",
|
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
|
# offensive wars
|
||||||
|
|
||||||
def url_button_view(war: pnwkit.War):
|
def url_button_view(war: pnwkit.War):
|
||||||
|
|||||||
Reference in new issue
Block a user