Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/wling-art/U1bot
Browse files Browse the repository at this point in the history
  • Loading branch information
wling-art committed Jan 9, 2024
2 parents e9c2e93 + b66310b commit 17743f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
22 changes: 6 additions & 16 deletions src/plugins/nonebot_plugin_setu_now/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
from nonebot.adapters.onebot.v11.permission import GROUP_ADMIN
from nonebot.permission import SUPERUSER
from nonebot import on_command, on_regex, require
from nonebot.adapters.onebot.v11 import GROUP, PRIVATE_FRIEND, Bot, Message, MessageEvent, MessageSegment, GroupMessageEvent, PrivateMessageEvent
from nonebot.exception import ActionFailed
from nonebot.log import logger
from nonebot.params import Depends, RegexGroup
from nonebot.plugin import PluginMetadata
from .r18_whitelist import get_group_white_list_record
from .data_source import SetuHandler
from .perf_timer import PerfTimer
Expand All @@ -20,27 +26,11 @@
autorevoke_send,
)
from nonebot_plugin_tortoise_orm import add_model
from nonebot.adapters.onebot.v11 import (
GROUP,
PRIVATE_FRIEND,
Bot,
Message,
MessageEvent,
MessageSegment,
GroupMessageEvent,
PrivateMessageEvent,
)
from nonebot.exception import ActionFailed
from nonebot.plugin import PluginMetadata
from nonebot.params import Depends, RegexGroup
from nonebot.log import logger
from nonebot import on_regex, on_command
from PIL import UnidentifiedImageError
from pathlib import Path
from typing import Any, Union, Annotated
from re import I, sub
import asyncio
from nonebot import require

require("nonebot_plugin_localstore")
require("nonebot_plugin_tortoise_orm")
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/nonebot_plugin_status/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
from typing import Any, Dict

from jinja2 import Environment
from jinja2.meta import find_undeclared_variables
from nonebot import get_driver
from nonebot.matcher import Matcher
from nonebot.permission import SUPERUSER
from nonebot.plugin import PluginMetadata
from jinja2.meta import find_undeclared_variables

from .config import Config
from .helpers import humanize_date, relative_time, humanize_delta
Expand Down
3 changes: 1 addition & 2 deletions src/plugins/nonebot_plugin_wordcloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from nonebot.permission import SUPERUSER
from nonebot.params import Arg, Depends
from nonebot.adapters import Bot, Event, Message
from nonebot import get_driver
from nonebot import get_driver, require
from arclet.alconna.arparma import Arparma
from arclet.alconna import ArparmaBehavior
import nonebot_plugin_saa as saa
Expand All @@ -41,7 +41,6 @@
from io import BytesIO
from datetime import datetime, timedelta
import re
from nonebot import require

require("nonebot_plugin_apscheduler")
require("nonebot_plugin_alconna")
Expand Down

0 comments on commit 17743f6

Please sign in to comment.