|
|
|
@ -44,6 +44,7 @@ def format_tags(tags: Iterable[str]):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async def send_post(post: E621Post, tag_list: List[str]):
|
|
|
|
|
try:
|
|
|
|
|
logging.warning(f'Sending post #{post.id}')
|
|
|
|
|
await bot.send_chat_action(int(os.environ['SEND_CHAT']), action=ChatAction.TYPING)
|
|
|
|
|
monitored_tags = set(post.tags.flatten()) & set(tag_list)
|
|
|
|
@ -117,6 +118,8 @@ async def send_post(post: E621Post, tag_list: List[str]):
|
|
|
|
|
await redis.sadd('e621:sent', post.id)
|
|
|
|
|
except Exception as e:
|
|
|
|
|
logging.exception(e)
|
|
|
|
|
except Exception as e:
|
|
|
|
|
logging.exception(e)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async def check_updates():
|
|
|
|
|