revoke wechat

This commit is contained in:
felinae98 2021-02-27 15:52:00 +08:00
parent d56c608dd7
commit 5af0e0fa9d
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610
3 changed files with 3 additions and 6 deletions

View File

@ -18,7 +18,7 @@ platform_manager: dict[str, PlatformProto] = {
'bilibili': Bilibili(),
'weibo': Weibo(),
'rss': Rss(),
'wechat': Wechat(),
# 'wechat': Wechat(),
}
async def fetch_and_send(target_type: str):

View File

@ -1,17 +1,13 @@
from collections import defaultdict
from datetime import datetime
import json
import re
import time
from typing import Any, Optional
from bs4 import BeautifulSoup as bs
import httpx
from nonebot import logger
from ..post import Post
from ..types import *
from ..utils import Singleton
from .platform import Platform
class Weibo(Platform):

View File

@ -20,7 +20,8 @@ class Singleton(type):
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]
supported_target_type = ('weibo', 'bilibili', 'rss', 'wechat')
# supported_target_type = ('weibo', 'bilibili', 'rss', 'wechat')
supported_target_type = ('weibo', 'bilibili', 'rss')
if not plugin_config.hk_reporter_use_local and not check_chromium():
os.environ['PYPPETEER_DOWNLOAD_HOST'] = 'http://npm.taobao.org/mirrors'