你好呀!这是我的Github首页,它好看吗(
不是)
欢迎访问我的个人主页哦:轻音时雨
这里会存一些个人写的低水平垃圾代码
我非常的菜,已经菜的不能再菜了
本页面欢迎小伙伴拿去修改使用哦~⭐
滥竽充数的标签:
从 21-08-14 开始统计的访问量:
一个适用Hoshinobot的早安晚安插件
你好呀!这是我的Github首页,它好看吗(
不是)
欢迎访问我的个人主页哦:轻音时雨
这里会存一些个人写的低水平垃圾代码
我非常的菜,已经菜的不能再菜了
本页面欢迎小伙伴拿去修改使用哦~⭐
滥竽充数的标签:
从 21-08-14 开始统计的访问量:
感觉一句“早安成功”似乎没什么意思,建议自定义一个词库,随机回复语句。
我自己稍微改了一下,先会随机发送表情包(储存在img文件,有好坏之分),然后根据时间段有不同的随机回复(储存在word)
(此外我多写了个设置,启用后群友都变成美少女)
https://github.com/SonderXiaoming/good_morning
如果需要可以pr
今天在大群里突然发现早安晚安命指令无效了,但之前是一直正常的,去自己的小群测试是可以用的。大群的指令报错如下:
[2022-07-07 10:36:34,905 good_morning] ERROR: <class 'json.decoder.JSONDecodeError'> occured when good_night handling message -1116494203.
[2022-07-07 10:36:34,910 good_morning] ERROR: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "C:\Users\Administrator\Downloads\HoshinoBot\hoshino\msghandler.py", line 28, in handle_message
await service_func.func(bot, event)
File "C:\Users\Administrator\Downloads\HoshinoBot\hoshino\service.py", line 224, in wrapper
return await func(bot, event)
File "C:\Users\Administrator\Downloads\HoshinoBot\hoshino\modules\good_morning_init_.py", line 91, in good_night
msg = get_night_msg(group_id, user_id, sex_str)
File "C:\Users\Administrator\Downloads\HoshinoBot\hoshino\modules\good_morning\get_night.py", line 80, in get_night_msg
data = json.load(file)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\json_init_.py", line 293, in load
return loads(fp.read(),
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\json_init_.py", line 357, in loads
return _default_decoder.decode(s)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
def get_current_json()方法里的消息拼接,int应该加上str(),否则报错 TypeError: can only concatenate str (not "int") to str
例如:str(config['morning']['get_up_intime']['early_time'])
另一模块地址:https://github.com/A-kirami/whattoeat
当发送 早上吃什么 时,bot本应触发 今天吃什么 插件,但实际被触发的是这个插件然后被忽略了导致另一个插件没有回应
[2022-11-28 16:15:59,866 nonebot] INFO: Self: 1518685955, Message -333747154 from 1502824494@[群:993633782]: '早上吃什么'
[2022-11-28 16:15:59,866 good_morning] INFO: Message -333747154 triggered good_morning.
[2022-11-28 16:15:59,866] INFO in message: Self: 1518685955, Message -333747154 from 1502824494@[群:993633782]: '早上吃什么'
[2022-11-28 16:15:59,866 good_morning] INFO: Message -333747154 is ignored by fullmatch condition.
[2022-11-28 16:15:59,866] INFO in msghandler: Message -333747154 triggered good_morning.
[2022-11-28 16:15:59,866 nonebot] INFO: Message -333747154 is ignored: Handled by Hoshino
[2022-11-28 16:15:59,866] INFO in service: Message -333747154 is ignored by fullmatch condition.
[2022-11-28 16:15:59,866] INFO in message: Message -333747154 is ignored: Handled by Hoshino
个人试了一下好像只有输入词包含 早上 时会导致这种情况,其他指令并不会产生冲突
大佬看到了看有没有解决方法
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.