Giter Site home page Giter Site logo

hoshinobot-plugin-petpet's Introduction

Hello World! 👋

Anurag's GitHub stats

hoshinobot-plugin-petpet's People

Contributors

benx1n avatar chingkingm avatar jcjrobert avatar lclaochou avatar meetwq avatar seafhmc avatar zoe-wh1t3zz avatar

Stargazers

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

Watchers

 avatar

hoshinobot-plugin-petpet's Issues

Download Fail and Bug/下载失败

  1. jsdelivr不稳定,经常性抽风,希望可以换源
    ~~ 2. 使用万能表情时,报错:~~ fixed by update emoji:
    pip install emoji --upgrade
fixed
[2022-07-14 17:23:27,064 头像表情包] ERROR: <class 'nonebot.message.CanceledException'> occured when gen_image handling message -69795279.
[2022-07-14 17:23:27,064 头像表情包] ERROR: ServiceFunc of HoshinoBot finished.
Traceback (most recent call last):
  File "/root/bot/XCW/Hoshino/hoshino/modules/petpet/__init__.py", line 126, in gen_image
    im = await make_image(com, sender, users, args=args)
  File "/root/bot/XCW/Hoshino/hoshino/modules/petpet/data_source.py", line 93, in make_image
    return await command.func(users, sender=sender, args=args)
  File "/root/bot/XCW/Hoshino/hoshino/modules/petpet/functions.py", line 96, in universal
    return await make_jpg_or_gif(img, make)
  File "/root/bot/XCW/Hoshino/hoshino/modules/petpet/utils.py", line 334, in make_jpg_or_gif
    return save_jpg(await func(img))
  File "/root/bot/XCW/Hoshino/hoshino/modules/petpet/functions.py", line 87, in make
    await text_frame(a, min_fontsize)
  File "/root/bot/XCW/Hoshino/hoshino/modules/petpet/functions.py", line 81, in text_frame
    await draw_text(
  File "/root/bot/XCW/Hoshino/hoshino/modules/petpet/utils.py", line 62, in draw_text
    if all([char not in UNICODE_EMOJI["en"] for char in text]):
  File "/root/bot/XCW/Hoshino/hoshino/modules/petpet/utils.py", line 62, in <listcomp>
    if all([char not in UNICODE_EMOJI["en"] for char in text]):
KeyError: 'en'

抛开错误不谈

其实我并不是来提问题的~~~
05}C5WYN_IQ@572AA SXI3E
群友们属实是对这个功能赞不绝口,建议多来点~~~
0QPF24BRJS`%U0I9OHJ

贴贴/亲亲等会触发复数次

目前我自己的处理方式是把贴贴/亲亲/摸摸等删了,不知道有没有别的方法,还有一个"玩游戏"会触发"玩"和"玩游戏"不知道咋解决。。。

请问如何添加每日限制次数呢?

之前的一些插件可以引入
from hoshino.util import DailyNumberLimiter
来限制每日发送的次数
那么这个插件如何才能限制群员每日发送的次数呢?

安装遇到问题

[2022-12-05 16:45:03,306 nonebot] ERROR: Failed to import "hoshino.modules.Hoshinobot-plugin-petpet.utils", error: Bindings generation error. Submodule name should always start with a parent module name. Parent name: cv2.cv2. Submodule name: cv2
[2022-12-05 16:45:03,306 nonebot] ERROR: Bindings generation error. Submodule name should always start with a parent module name. Parent name: cv2.cv2. Submodule name: cv2
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 249, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\Administrator\Desktop\HoshinoBot\HoshinoBot\hoshino\modules\Hoshinobot-plugin-petpet_init
.py", line 11, in
from .data_source import commands, make_image
File "C:\Users\Administrator\Desktop\HoshinoBot\HoshinoBot\hoshino\modules\Hoshinobot-plugin-petpet\data_source.py", line 5, in
from .utils import to_image
File "C:\Users\Administrator\Desktop\HoshinoBot\HoshinoBot\hoshino\modules\Hoshinobot-plugin-petpet\utils.py", line 4, in
from cv2 import cv2 as cv
ImportError: Bindings generation error. Submodule name should always start with a parent module name. Parent name: cv2.cv2. Submodule name: cv2

是按照正常的安装方法安装的,前面Issues的方法也试过了,但是还是报错了,遇到了这个问题。

py3.8 安装依赖后提示 No module named

[2022-05-17 19:02:59,764 nonebot] ERROR: Failed to import "hoshino.modules.petpet.data_source", error: No module named 'typing_extensions'
[2022-05-17 19:02:59,765 nonebot] ERROR: No module named 'typing_extensions'
Traceback (most recent call last):
File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 253, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in load_unlocked
File "", line 848, in exec_module
File "", line 219, in call_with_frames_removed
File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet_init
.py", line 10, in
from .data_source import commands, make_image
File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\data_source.py", line 5, in
from .utils import to_image
File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\utils.py", line 10, in
from typing_extensions import Literal
ModuleNotFoundError: No module named 'typing_extensions'
[2022-05-17 19:02:59,770 nonebot] INFO: Succeeded to import "hoshino.modules.petpet.download"
[2022-05-17 19:02:59,775 nonebot] ERROR: Failed to import "hoshino.modules.petpet.functions", error: No module named 'typing_extensions'
[2022-05-17 19:02:59,777 nonebot] ERROR: No module named 'typing_extensions'
Traceback (most recent call last):
File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 253, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\importlib_init
.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in load_unlocked
File "", line 848, in exec_module
File "", line 219, in call_with_frames_removed
File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet_init
.py", line 10, in
from .data_source import commands, make_image
File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\data_source.py", line 5, in
from .utils import to_image
File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\utils.py", line 10, in
from typing_extensions import Literal
ModuleNotFoundError: No module named 'typing_extensions'
[2022-05-17 19:02:59,785 nonebot] ERROR: Failed to import "hoshino.modules.petpet.models", error: No module named 'typing_extensions'
[2022-05-17 19:02:59,785 nonebot] ERROR: No module named 'typing_extensions'
Traceback (most recent call last):
File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 253, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\importlib_init
.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in load_unlocked
File "", line 848, in exec_module
File "", line 219, in call_with_frames_removed
File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet_init
.py", line 10, in
from .data_source import commands, make_image
File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\data_source.py", line 5, in
from .utils import to_image
File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\utils.py", line 10, in
from typing_extensions import Literal
ModuleNotFoundError: No module named 'typing_extensions'
[2022-05-17 19:02:59,796 nonebot] ERROR: Failed to import "hoshino.modules.petpet.utils", error: No module named 'typing_extensions'
[2022-05-17 19:02:59,797 nonebot] ERROR: No module named 'typing_extensions'
Traceback (most recent call last):
File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 253, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\servers\AppData\Local\Programs\Python\Python38\lib\importlib_init
.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in call_with_frames_removed
File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet_init
.py", line 10, in
from .data_source import commands, make_image
File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\data_source.py", line 5, in
from .utils import to_image
File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\petpet\utils.py", line 10, in
from typing_extensions import Literal
ModuleNotFoundError: No module named 'typing_extensions'

opencv-python-headless报错

最新版opencv-python-headless报错ImportError: cannot import name ‘_registerMatType‘ from ‘cv2.cv2
需要限制一下版本opencv-python-headless<4.3
(仅在centos7测试)

插件无效

我依赖全装了,发指令无回复。而且lssv里一直都不显示,求作者大大帮忙

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.