Comments (7)
兔兔v6.0.12,go-cqhttp v1.0.0rc4
from amiya-bot.
from amiya-bot.
未能复现该问题
from amiya-bot.
能看一下你的其他插件都装了什么吗?兔兔互动功能有很多插件都会参与修改,有可能是其他插件和他有冲突或者干扰。
from amiya-bot.
能看一下你的其他插件都装了什么吗?兔兔互动功能有很多插件都会参与修改,有可能是其他插件和他有冲突或者干扰。
刚刚在没装插件的情况下试了下,还是会出现这个问题(控制台管理员添加了我,我在不是管理的群里控制不了兔兔上下班)。装了“词语替换”才好,跟上传的图片视频中情况类似。
说来也奇怪,我服务器上遇到了不少奇奇怪怪的问题(包括但不限于这件事,2016及以上系统兔兔装插件时会报SSL错误装不上),也不知道是咋回事。。。摆烂了,虽然有点小问题,但也不是不能用(
from amiya-bot.
该异常已被定位:
amiyabot-replace的插件代码中,对is_admin进行了复写,如下所示:
@bot.handler_middleware
async def _(data: Message):
replace: List[TextReplace] = TextReplace.select() \
.where(TextReplace.group_id == data.guild_id, TextReplace.is_active == 1) \
.orwhere(TextReplace.is_global == 1)
if not data.is_admin:
data.is_admin = bool(Admin.get_or_none(account=data.user_id))
在Core中的三个adapter都没有读取数据库(因为读不了)
Amiyabot中也没有读取这个Admin数据库
因此只有安装了词语替换才能使得后台中的管理员账户生效。
建议将该插件的midware移动到amiyabot项目中。
from amiya-bot.
该异常已被定位: amiyabot-replace的插件代码中,对is_admin进行了复写,如下所示:
@bot.handler_middleware async def _(data: Message): replace: List[TextReplace] = TextReplace.select() \ .where(TextReplace.group_id == data.guild_id, TextReplace.is_active == 1) \ .orwhere(TextReplace.is_global == 1) if not data.is_admin: data.is_admin = bool(Admin.get_or_none(account=data.user_id))
在Core中的三个adapter都没有读取数据库(因为读不了) Amiyabot中也没有读取这个Admin数据库
因此只有安装了词语替换才能使得后台中的管理员账户生效。
建议将该插件的midware移动到amiyabot项目中。
确实……核心库的消息生命周期改名之后修复这个问题
from amiya-bot.
Related Issues (20)
- 适应手机的图片比例与尺寸 HOT 1
- 一个关于实例IP变化导致的bug HOT 8
- 加载了不存在的插件 HOT 2
- [插件BUG]词语替换1.3 BUG AttributeError: 'Message' object has no attribute 'text_origin' HOT 1
- 在WindowsServer2016/2019上尝试安装插件时SSL相关字样下载失败 HOT 3
- 部署出错 HOT 2
- 兔兔互动插件报错 HOT 2
- 语音文件下载失败 HOT 1
- 唤起兔兔,兔兔无响应 Got Code 404 HOT 1
- 安装插件出错 HOT 3
- 安装程序出错 HOT 9
- AmiyaBot Console的跨域问题 HOT 7
- 明日方舟干员资料报错 HOT 7
- assets download failed HOT 1
- 官方的关卡查询插件2.1里面的敌人图片不显示 HOT 2
- 字典合并问题 HOT 1
- 请问,能否使用red部署QQ群机器人?如果不能,请问作者是否有计划添加使用red部署QQ机器人的方法? HOT 4
- 卸载插件时展示依赖关系 HOT 2
- 部署相关的的提议 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amiya-bot.