Giter VIP home page Giter VIP logo

opqqq-plugin's Introduction

opqqq-plugin

🔥使用最多 | 🚀热门插件 | 🆕最新插件

自定义表情包🔥

新颖的自制表情包工具,沙雕图生产效率高。

关注早晚安🚀

关注睡眠时间,灵活调整生物钟

Vtuber / Pcr / 原神 运势🚀

喜欢的 vtuber / pcr / 原神 角色带来你每天的运势

pcr 版源码分支:pcr-branch (静态资源感谢 Pcr 社区提供)

原神 版源码分支:genshin-branch (静态资源感谢 @Kouseki 提供)

注:自 hololive 发布敏感言论后,我们不建议您继续使用 vtuber-fortune,若需从 vtuber-fortune 迁移,请查看 无损迁移 方法

可以爬了吗

解锁更多爬与丢的姿势(By clague

Strings 签到🆕

美好一天的开始,今天也要元气满满哦(By jinserrr

5000 兆元字体生成器

生成具有冲击力的图片,使用方法详见:5000 choyen doc

使用说明📚

使用文档

Docker🐳

食用方法

Build

若需分插件打包,请运行 build/bundle.py,打包结果将生成于 build/out 文件夹内

兼容性✔

本项目插件来自于 nonebot-plugin 的重构,配置完全兼容原项目,低成本即可马上迁移使用。

编辑文件❗

注:编辑任何文件请保证在 UTF-8 编码下,若为 ANSI,使用 NotePad++ 编码 -> 转为 UTF-8 编码。

opqqq-plugin's People

Contributors

dependabot[bot] avatar fz6m avatar heilaas avatar xiyaowong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

opqqq-plugin's Issues

时不时会出现签到出错

` File "/home/pi/Desktop/OPQBOT/OPQBot_3.0.8_linux_arm/python/plugins/bot_sign_in.py", line 66, in receive_group_msg
mainProgram(msg, bot, userQQ, userGroup, nickname)
│ │ │ │ │ └ 'pudding233 【即将开学】'
│ │ │ │ └ 1072915340
│ │ │ └ 2480751781
│ │ └ <iotbot.action.Action object at 0x74e95bb0>
│ └ '签到'
└ <function mainProgram at 0x74977588>

File "/home/pi/Desktop/OPQBOT/OPQBot_3.0.8_linux_arm/python/plugins/bot_sign_in.py", line 610, in mainProgram
result = processing(userQQ, nickname)
│ │ └ 'pudding233 【即将开学】'
│ └ 2480751781
└ <function processing at 0x74983420>

File "/home/pi/Desktop/OPQBOT/OPQBot_3.0.8_linux_arm/python/plugins/bot_sign_in.py", line 679, in processing
result = generatePicture(userQQ, nickname, userInfo.favorability, userInfo.days, hitokoto)
│ │ │ │ │ └ '相逢一醉是前缘,风雨散、飘然何处。'
│ │ │ │ └ {'days': 4, 'last_time': '2020-08-17', 'favorability': '93'}
│ │ │ └ {'days': 4, 'last_time': '2020-08-17', 'favorability': '93'}
│ │ └ 'pudding233 【即将开学】'
│ └ 2480751781
└ <function generatePicture at 0x74983390>

File "/home/pi/Desktop/OPQBOT/OPQBot_3.0.8_linux_arm/python/plugins/bot_sign_in.py", line 648, in generatePicture
result = SignIn(userQQ, nickname, favorability, days, hitokoto).drawing()
│ │ │ │ │ └ '相逢一醉是前缘,风雨散、飘然何处。'
│ │ │ │ └ 4
│ │ │ └ '93'
│ │ └ 'pudding233 【即将开学】'
│ └ 2480751781
└ <class 'plugins.bot_sign_in.SignIn'>

File "/home/pi/Desktop/OPQBOT/OPQBot_3.0.8_linux_arm/python/plugins/bot_sign_in.py", line 456, in drawing
result = (self.createAvatar()
│ └ <function SignIn.createAvatar at 0x74977bb8>
└ <plugins.bot_sign_in.SignIn object at 0x7239ed10>

File "/home/pi/Desktop/OPQBOT/OPQBot_3.0.8_linux_arm/python/plugins/bot_sign_in.py", line 311, in createAvatar
self._img = self.resize(Image.open(BytesIO(res)).convert('RGBA'), (size, size))
│ │ │ │ │ │ │ │ │ └ 640
│ │ │ │ │ │ │ │ └ 640
│ │ │ │ │ │ │ └ b'\n\n<title>404 Not Found</title>\n\n

Not Foun...
│ │ │ │ │ │ └ <class '_io.BytesIO'>
│ │ │ │ │ └ <function open at 0x74be8e40>
│ │ │ │ └ <module 'PIL.Image' from '/usr/lib/python3/dist-packages/PIL/Image.py'>
│ │ │ └ <staticmethod object at 0x74979790>
│ │ └ <plugins.bot_sign_in.SignIn object at 0x7239ed10>
│ └ <Status.FAILURE: '_failure'>
└ <plugins.bot_sign_in.SignIn object at 0x7239ed10>

File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2687, in open
% (filename if filename else fp))
│ │ └ <_io.BytesIO object at 0x72d9a090>
│ └ ''
└ ''

`
经常发生签到报错,但再次签到却正常

bot.py起不来

[root@hase Plugins]# chmod +rwx * -R
[root@hase Plugins]# python3 bot.py

+---------------------+-------+----------------------------------------------+
| Receiver | Count | Info |
+---------------------+-------+----------------------------------------------+
| Friend Msg Receiver | 0 | |
| Group Msg Receiver | 4 | pcr_fortune/sign_in/good_morning/throw_creep |
| Event Receiver | 0 | |
+---------------------+-------+----------------------------------------------+

2020-12-26 20:32:13 INFO Connecting to the server...
❌ 2020-12-26 20:32:13 ERROR Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/iotbot/client.py", line 214, in run
self.socketio.connect(self.config.address, transports=['websocket'])
File "/usr/local/lib/python3.9/site-packages/python_socketio-5.0.3-py3.9.egg/socketio/client.py", line 280, in connect
raise exceptions.ConnectionError(exc.args[0]) from None
socketio.exceptions.ConnectionError: Connection error

报2个文件错误

启动插件

image
请问这样是启动插件了吗,但关键词没有触发
(第一次弄,劳烦解答一下orz

签到插件出现ValueError: Trailing data报错

1|bot  |   File "/usr/local/lib/python3.9/site-packages/botoy/pool.py", line 15, in callback
1|bot  |     raise worker_exception
1|bot  |   File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
1|bot  |     result = self.fn(*self.args, **self.kwargs)
1|bot  |   File "/usr/local/lib/python3.9/site-packages/botoy/decorators/_ignore_botself.py", line 16, in inner
1|bot  |     return func(ctx)
1|bot  |   File "/root/botoy-plugins/plugins/bot_sign_in.py", line 65, in receive_group_msg
1|bot  |     mainProgram(msg, bot, userQQ, userGroup, nickname)
1|bot  |   File "/root/botoy-plugins/plugins/bot_sign_in.py", line 633, in mainProgram
1|bot  |     result = processing(userQQ, nickname)
1|bot  |   File "/root/botoy-plugins/plugins/bot_sign_in.py", line 696, in processing
1|bot  |     hitokoto = Hitokoto.hitokoto()
1|bot  |   File "/root/botoy-plugins/plugins/bot_sign_in.py", line 556, in hitokoto
1|bot  |     result = cls.get()
1|bot  |   File "/root/botoy-plugins/plugins/bot_sign_in.py", line 534, in get
1|bot  |     cls.archive(hitokoto)
1|bot  |   File "/root/botoy-plugins/plugins/bot_sign_in.py", line 548, in archive
1|bot  |     fileContent = Tools.readJsonFile(path)
1|bot  |   File "/root/botoy-plugins/plugins/bot_sign_in.py", line 112, in readJsonFile
1|bot  |     return json.loads(f.read())
1|bot  | ValueError: Trailing data

日志如上

ERROR 响应码出错 => 500

OPQBot和genshin-fortune都能正常连接接收消息,但对我的消息不做响应,第一次运行插件发送 今日运势 会提示 ❌ 12-20 08:39:01 ERROR 响应码出错 => 500

可以使用botoy重建嘛

botoy是python-iotbot的新版本,拥有更好的兼容性,只更新了部分的名称和类
我准备自己改但能力不允许()
owo

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.