diff options
author | 0w0 <[email protected]> | 2022-10-15 23:26:26 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-15 23:26:26 +0800 |
commit | 21283756343dce872cd842aa5f39bbd437f079a7 (patch) | |
tree | 25da6eb4459a76a9b16307ee254eb418a09cf8a7 /ATRI/plugins/twitter | |
parent | 9d7abb93189514c066537db347e1d8d686ac9aaf (diff) | |
parent | 6869e39699e5129ddf34af8be804d5330a395e91 (diff) | |
download | ATRI-21283756343dce872cd842aa5f39bbd437f079a7.tar.gz ATRI-21283756343dce872cd842aa5f39bbd437f079a7.tar.bz2 ATRI-21283756343dce872cd842aa5f39bbd437f079a7.zip |
🔀 Merge pull request #65 from yangrq1018/main
Nonebot version bump up request
Diffstat (limited to 'ATRI/plugins/twitter')
-rw-r--r-- | ATRI/plugins/twitter/__init__.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ATRI/plugins/twitter/__init__.py b/ATRI/plugins/twitter/__init__.py index 66bde4f..35c07f7 100644 --- a/ATRI/plugins/twitter/__init__.py +++ b/ATRI/plugins/twitter/__init__.py @@ -150,9 +150,6 @@ class TwitterDynamicChecker(BaseTrigger): return now -_bot: Bot = get_bot() - - @scheduler.scheduled_job( AndTrigger([IntervalTrigger(seconds=30), TwitterDynamicChecker()]), name="推特动态更新检查", @@ -173,6 +170,7 @@ async def _check_td(): else: m: TwitterSubscription = tq.get_nowait() + _bot: Bot = get_bot() group_list = await _bot.get_group_list() gl = [f"{i['group_id']}" for i in group_list] if m.group_id not in gl: |