Giter Site home page Giter Site logo

good_morning's Introduction

⌈ AZMIAO ⌋

这是一只废物中的战斗废物
- 轻音一生推 -
✨ 下面是京吹置顶图 ✨

京吹

你好呀!这是我的Github首页,它好看吗(不是

欢迎访问我的个人主页哦:轻音时雨

这里会存一些个人写的低水平垃圾代码

我非常的菜,已经菜的不能再菜了

本页面欢迎小伙伴拿去修改使用哦~⭐


滥竽充数的标签:

从 21-08-14 开始统计的访问量:

这是Github访问量,显示不出来可以多刷新几次


good_morning's People

Contributors

azmiao avatar cydxdianxian avatar morarity123 avatar sonderxiaoming avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

good_morning's Issues

回复自定义

感觉一句“早安成功”似乎没什么意思,建议自定义一个词库,随机回复语句。
我自己稍微改了一下,先会随机发送表情包(储存在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本应触发 今天吃什么 插件,但实际被触发的是这个插件然后被忽略了导致另一个插件没有回应
image

[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
个人试了一下好像只有输入词包含 早上 时会导致这种情况,其他指令并不会产生冲突
QHO%LB`324LV%2M9LF7H985
image
大佬看到了看有没有解决方法

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.