-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy path__init__.py
61 lines (47 loc) · 2.5 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import nonebot
from nonebot import require
from nonebot.plugin import PluginMetadata
require("nonebot_plugin_saa")
require("nonebot_plugin_apscheduler")
_driver = nonebot.get_driver()
_command_begin = list(_driver.config.command_start)[0]
from . import _version
__version__ = _version.__version__
__plugin_meta__ = PluginMetadata(
name="米游社小助手插件\n",
description="米游社工具-每日米游币任务、游戏签到、商品兑换、免抓包登录\n",
type="application",
homepage="https://github.com/Ljzd-PRO/nonebot-plugin-mystool",
supported_adapters={"~onebot.v11", "~qq"},
usage=
f"\n🔐 {_command_begin}登录 ➢ 登录绑定米游社账户"
f"\n📦 {_command_begin}地址 ➢ 设置收货地址ID"
f"\n🗓️ {_command_begin}签到 ➢ 手动进行游戏签到"
f"\n📅 {_command_begin}任务 ➢ 手动执行米游币任务"
f"\n🛒 {_command_begin}兑换 ➢ 米游币商品兑换相关"
f"\n🎁 {_command_begin}商品 ➢ 查看米游币商品信息(商品ID)"
f"\n📊 {_command_begin}原神便笺 ➢ 查看原神实时便笺(原神树脂、洞天财瓮等)"
f"\n📊 {_command_begin}铁道便笺 ➢ 查看星穹铁道实时便笺(开拓力、每日实训等)"
f"\n⚙️ {_command_begin}设置 ➢ 设置是否开启通知、每日任务等相关选项"
f"\n🔑 {_command_begin}账号设置 ➢ 设置设备平台、是否开启每日计划任务、频道任务"
f"\n🔔 {_command_begin}通知设置 ➢ 设置是否开启每日米游币任务、游戏签到的结果通知"
f"\n🖨️ {_command_begin}导出Cookies ➢ 导出绑定的米游社账号的Cookies数据"
f"\n🖇️ {_command_begin}用户绑定 ➢ 绑定关联其他聊天平台或其他账号的用户数据"
f"\n📨 {_command_begin}私信响应 ➢ 让机器人发送一条私信给你,主要用于QQ频道"
f"\n📖 {_command_begin}帮助 ➢ 查看帮助信息"
f"\n🔍 {_command_begin}帮助 <功能名> ➢ 查看目标功能详细说明"
"\n\n⚠️你的数据将经过机器人服务器,请确定你信任服务器所有者再使用。",
extra={"version": __version__}
)
# 升级 V1 版本插件数据文件
from .model.upgrade import upgrade_plugin_data
upgrade_plugin_data()
# 防止多进程生成图片时反复调用
from .utils import CommandBegin
_driver.on_startup(CommandBegin.set_command_begin)
# 加载命令
from .command import *
# 加载其他代码
from .api import *
from .model import *
from .utils import *