sync wars every 1hr manually
This commit is contained in:
1 parent
e7e8dfba0b
commit
c10e96c7b1
1 file changed
+2
@@ -11,6 +11,7 @@ from typing import List, Literal, Optional, Union
|
||||
|
||||
import aiohttp
|
||||
import discord
|
||||
from discord.types.channel import Channel
|
||||
import pnwkit
|
||||
from discord.ext import commands, tasks
|
||||
from discord.utils import format_dt
|
||||
@@ -89,6 +90,7 @@ class WarMonitor(commands.Cog):
|
||||
@tasks.loop(hours=1)
|
||||
async def war_check(self):
|
||||
channel = await self.bot.fetch_channel(1353940740803133541)
|
||||
await channel.send("hallo")
|
||||
message = await channel.send(" syncing wars", delete_after=4)
|
||||
ctx = await self.bot.get_context(message)
|
||||
command = self.bot.get_command("sync_wars")
|
||||
|
||||
Reference in new issue
Block a user