moonlark-dev / xdbot2 Goto Github PK
View Code? Open in Web Editor NEW多功能 ChatBot,不止于 QQ
Home Page: https://xdbot2.itcdt.top/
License: GNU General Public License v3.0
多功能 ChatBot,不止于 QQ
Home Page: https://xdbot2.itcdt.top/
License: GNU General Public License v3.0
添加娱乐模块vip系统,配合部分有加成的道具及功能使用
/vip
:VIP操作
/vip buy <level> <time>
:购买vip/vip renew <time>
:续费vip/vip upgrade <level>
:升级vipVIP有效时常最长不超过180天,使用vimcoin购买
既定算法为:VIP等级 ** 2 * 0.75 / 30
无最高等级限制
升级时天数不变,价格为(升级后VIP等级 ** 2 * 0.75 / 30 - 升级前VIP等级 ** 2 * 0.75 / 30) * 剩余天数
vip有效期内无法使用/vip new
指令
vip仅持有对于部分道具(如每日vimcoin礼包)及部分功能(如签到)的相对(不算太高)加成,尽量不影响平衡
No response
可用于修改指定物品的displayName
及简介,修改后将数据发送到控制中心
配合书与笔
如题
No response
在使用/cave-g时,回声洞投稿者的昵称会不显示,而/cave就没有这个BUG/特性。
如题,在指定群聊关闭后将不再触发该功能
可设为su或群管理员指令
85群人均运气太好导致一直触发随机掉落完了他群掉的资源还不用还骂我做的不行我直接妈妈生的
类似xdbot,对非内置网页提供20s的冷却
No response
在回复中使用正则表达式匹配消息内容,如果匹配成功则发送对应文本,可接受群员投稿,不解析CQ码,使用json格式储存
想不到别的指令名了可以改改
/reply
/reply create <正则表达式,允许空格>\n<发送内容,可为json(列表)>
/reply view <ID>
/reply remove <ID>
在创建后发送项目ID,同时发送到控制中心
No response
将report修改为举报,不再提示前往Github,用于举报用户的违规操作(处理结果使用messenger发送)
No response
如题,输入代码并执行(建议:在glot.io)后返回执行输出
No response
如题,命令用法:
/cave-q <开始的回声洞ID> <结束的回声洞ID>
/use <物品ID> [次数]
No response
有些数据文件不是字典类型
No response
将用户背包数据和用户基本数据按用户分开,一个用户一个文件
No response
如题,类似ct
和jrrp rank
,显示6-count
前5名及对应数据(数量)及发送者的数据
方便数据量过大时查看
将XDbot2 wiki独立,专门用于开发文档,使用文档则内置到XDbot2 man指令
No response
如题,用于访问XDbot2内置的部分页面,如/preview six
自动解析为/preview http://127.0.0.1:38192/six
,以此类推
方便操作
类似Minecraft中的书与笔,可书写、获取、重置、保存(保存后无法再次编辑)内容,相应内容保存在物品NBT中。可丢弃,可出售,获取时不解析CQ码并在保存后发送su群.
致敬Minecraft
如题
堵塞不好看(
如题
No response
有时候只写一个参数筛选不出来,需要复制粘贴114514遍…
下次我自己来改
/su *log -M03 -D22 会输出一堆东西
No response
如题,注意不用转发内容为空的消息
No response
使用背包内数量为0(或以下)的物品时出错
报错内容
Traceback (most recent call last):
File "/home/xdisrbq/XDbot2/src/plugins/Core/plugins/use.py", line 23, in useHandle
Message(_userCtrl.useItem(event.get_user_id(), argument)), at_sender=True
File "/home/xdisrbq/XDbot2/src/plugins/Core/plugins/_userCtrl.py", line 143, in useItem
removeItemsFromBag(userID, pos, 1)
File "/home/xdisrbq/XDbot2/src/plugins/Core/plugins/_userCtrl.py", line 57, in removeItemsFromBag
raise NotHaveEnoughItem()
plugins._userCtrl.NotHaveEnoughItem
此处应提示物品不足而不是处理失败
/use 1
如题
No response
在/jrrp <QQ>
指令中,添加使用at查询其他用户人品
如/jrrp 1744793737
等价于/jrrp @这里是小邓QwQ
可以方便官版QQ用户,不再需要切换一堆页面查询他人QQ号
目前XDBot的代码结构并不完美。
如果需要的话,我可以进行该操作并且打成Pr给您。
No response
超管可以指定风控部分用户,对应用户在提交cave投稿时需要超管审核才能正常显示否则无法被随机且索引将把内容替换为内容审核中(好好反思下这个cave为什么要审核)
我不知道(x
/su cave remove <ID>
删除cave同时将回声洞(<ID>
)发送出来
在超管删除cave后可以确认并恢复cave
如题
No response
如题
No response
random
:取随机数
random
:在0~100间取随机数random <end>
:在0~<end>
间取随机数random <start> <end>
:在<start>
~<end>
间取随机数No response
该物品可以用1919个VimCoin购买1919个
该物品使用后会对群昵称强制去除[檎兽]前缀
我是homo
在发送超级广播时,不是立即发送,而是等待超管再次确认内容无误后发送
类似这样:
/su notice <text>
/su notice submit
/su notice drop
通常缓存不会保存太久,可直接存在变量中
防止某些超管(比如我,理直气壮)打错字或没打完手滑点了发送
QUICK CALCULUS - 即:快速微积分,可以挑选一些很简单的微积分或者极限给群友做做 /狗头
受到[QUICK MATH]的启发,另外QUICK CALCULUS可能会难一点,可以酌情选择3-5个消息内的正确答案的消息,或者比QUICK MATH获得的奖励更多,之类的
如6-count
的html缓存、setu
的图片缓存(在启动时清除),使用完成后删除文件以节省空间
节省服务器及备份仓库空间
su群里一大堆报错真正有几条是有用的
建议把这种 nonebot.adapters.onebot.v11.exception.NetworkError: NetWorkError(message='WebSocket call api send_msg timeout')
之类的报错不上报,在发送报错的时候做一下检查
No response
bag
)lang view
)No response
使用全中文提示,如下
[信鸽]: 收到新任务(下标)
收件:123456789
发件:123456789
内容:114514
方便超管查看
如题,将su各个功能分开成不同文件
No response
在使用签到时提示
处理失败!
TypeError: JSONDecoder.__init__() got an unexpected keyword argument 'encoding'
日志中具体报错为
03-21 19:16:47 [ERROR] plugins | Traceback (most recent call last):
File "/home/xdisrbq/XDbot2/src/plugins/Core/plugins/sign.py", line 24, in sign_handler
origin_data = user.get_user_data(qq)
File "/home/xdisrbq/XDbot2/src/plugins/Core/plugins/etm/user.py", line 12, in get_user_data
return json.load(open("data/etm/users.json"), encoding="utf-8")[user_id]
File "/usr/lib/python3.10/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/usr/lib/python3.10/json/__init__.py", line 359, in loads
return cls(**kw).decode(s)
TypeError: JSONDecoder.__init__() got an unexpected keyword argument 'encoding'
经测试 cave-a 也出现了该问题
/sign
该物品可以用114个VimCoin购买114个
该物品使用后会对群昵称强制加入[檎兽]前缀
我是homo
在刷到cave的同时发送该cave的所有评论,回复cave消息可以评论
No response
用法:/lang view <lang>
展示类似以下内容
语言:zh_hans
作者:StarWorld
兼容性:100%
兼容性计算方法为:
缺失条目 / 总条目数 *100%
No response
如题
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.