This commit is contained in:
felinae98 2021-02-09 23:10:29 +08:00
parent 111378b909
commit 3b4bb8bee9
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ class Arknights(metaclass=Singleton):
async def fetch_new_post(self, _) -> list[Post]:
try:
data = await self.get_announce_list()
if self.inited['default'] or True: # FIXME
if self.inited['default']:
return await self.filter(data)
else:
await self.filter(data, True)

View File

@ -10,7 +10,7 @@ LAST_SEND_TIME = time.time()
async def do_send_msgs():
global LAST_SEND_TIME
if time.time() - LAST_SEND_TIME < 15: # FIXME
if time.time() - LAST_SEND_TIME < 1.5:
return
if QUEUE:
bot, user, user_type, msg, retry_time = QUEUE.pop(0)
@ -28,6 +28,6 @@ async def do_send_msgs():
def send_msgs(bot, user, user_type, msgs):
for msg in msgs:
QUEUE.append((bot, user, user_type, msg, 3))
QUEUE.append((bot, user, user_type, msg, 2))