Giter VIP home page Giter VIP logo

nonebot-plugin-bread-shop's Introduction

     ./:::::::/,≠´:::::;::::::::ヽ
    /:::::::〃:::::::::/}::::丿ハ
   ./:::::::::i{l|:::::/ ノ/ }:::::}
  /:::::::::::瓜イ> ´< ,':::::ノ
  ./:::::::::::::|ノヘ.{、 ( フ_ノノイ
  |:::::::::::::::| /}`ス/ ̄ ̄ ̄ /
. |::::::::::::::::|(_:::::つ/VsCode ./ 
. ̄ ̄ ̄ ̄ ̄\/____/ ̄ ̄ ̄

Hello, I'm Mai Icy. 👋

This my blog: https://www.maiicy.top/ 🥰

Contact me: [email protected] 📧

madneal's github stats

nonebot-plugin-bread-shop's People

Contributors

mai-icy 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

Watchers

 avatar

nonebot-plugin-bread-shop's Issues

面包记录存在问题

面包记录查询时,猜拳次数总是与吃次数相同,而非正确的数值。
经检查,init.py line310 和 316中存在拼写错误,猜拳字段错误拼写为user_log.eat_times。望修正

无法响应@参数

01-10 16:05:40 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_bread_shop, lineno=68) failed.
Traceback (most recent call last):
File "", line 19, in
File "D:\NoneBot\nb.venv\lib\site-packages\nonebot_init_.py", line 331, in run
get_driver().run(*args, **kwargs)
File "D:\NoneBot\nb.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 189, in run
uvicorn.run(
File "D:\NoneBot\nb.venv\lib\site-packages\uvicorn\main.py", line 587, in run
server.run()
File "D:\NoneBot\nb.venv\lib\site-packages\uvicorn\server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 636, in run_until_complete
self.run_forever()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 603, in run_forever
self._run_once()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1909, in _run_once
handle._run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "D:\NoneBot\nb.venv\lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher
await _run_matcher(

File "D:\NoneBot\nb.venv\lib\site-packages\nonebot\message.py", line 428, in run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "D:\NoneBot\nb.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 846, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "D:\NoneBot\nb.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 821, in simple_run
await handler(
File "D:\NoneBot\nb.venv\lib\site-packages\nonebot\dependencies_init
.py", line 113, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "D:\NoneBot\nb.venv\lib\site-packages\nonebot_plugin_bread_shop_init_.py", line 188, in _
event_.set_other_id(robbed_qq, robbed_name)
File "D:\NoneBot\nb.venv\lib\site-packages\nonebot_plugin_bread_shop\bread_operate.py", line 142, in set_other_id
self.other_data = self.bread_db.get_bread_data(other_id)
File "D:\NoneBot\nb.venv\lib\site-packages\nonebot_plugin_bread_shop\bread_handle.py", line 47, in wrapper
raise TypeError('Argument {} must be {}'.format(name, str))
TypeError: Argument user_id must be <class 'str'>

排行功能在全局模式无法使用

请问排行功能在全局模式是无法使用吗,会有以下报错
[message]Running Matcher(type='message', module=nonebot_plugin_bread_shop) failed.
另外,如果可以,能否将排行以图片方式显示

pydantic库版本更新以及无法适配satori协议

bot启动时出现如下报错,求更新修复

04-24 19:32:14 [ERROR] nonebot | Failed to import "nonebot_plugin_bread_shop"
Traceback (most recent call last):
File "", line 18, in
File "C:\Users\Maniera\Documents\AINonebot\WST\T.venv\lib\site-packages\nonebot\plugin\load.py", line 130, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "C:\Users\Maniera\Documents\AINonebot\WST\T.venv\lib\site-packages\nonebot\plugin\load.py", line 64, in load_all_plugins
return manager.load_all_plugins()
File "C:\Users\Maniera\Documents\AINonebot\WST\T.venv\lib\site-packages\nonebot\plugin\manager.py", line 176, in load_all_plugins
return set(
File "C:\Users\Maniera\Documents\AINonebot\WST\T.venv\lib\site-packages\nonebot\plugin\manager.py", line 177, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))

File "C:\Users\Maniera\Documents\AINonebot\WST\T.venv\lib\site-packages\nonebot\plugin\manager.py", line 142, in load_plugin
module = importlib.import_module(name)
File "C:\Users\Maniera\AppData\Local\Programs\Python\Python310\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in load_unlocked
File "C:\Users\Maniera\Documents\AINonebot\WST\T.venv\lib\site-packages\nonebot\plugin\manager.py", line 242, in exec_module
super().exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\Maniera\Documents\AINonebot\WST\T.venv\lib\site-packages\nonebot_plugin_bread_shop_init
.py", line 13, in
from .bread_handle import BreadDataManage, Action
File "C:\Users\Maniera\Documents\AINonebot\WST\T.venv\lib\site-packages\nonebot_plugin_bread_shop\bread_handle.py", line 13, in
from .config import LEVEL
File "C:\Users\Maniera\Documents\AINonebot\WST\T.venv\lib\site-packages\nonebot_plugin_bread_shop\config.py", line 5, in
from pydantic import BaseSettings, Extra
File "C:\Users\Maniera\Documents\AINonebot\WST\T.venv\lib\site-packages\pydantic_init
.py", line 380, in getattr
return _getattr_migration(attr_name)
File "C:\Users\Maniera\Documents\AINonebot\WST\T.venv\lib\site-packages\pydantic_migration.py", line 296, in wrapper
raise PydanticImportError(
pydantic.errors.PydanticImportError: BaseSettings has been moved to the pydantic-settings package. See https://docs.pydantic.dev/2.7/migration/#basesettings-has-moved-to-pydantic-settings for more details.

For further information visit https://errors.pydantic.dev/2.7/u/import-error

🍞特殊事件设计🍞

欢迎提供特殊事件素材
请在回复时明确以下几点

  1. 事件内容以及bot回复
  2. 事件对应的操作类型
  3. 事件触发概率
  4. 事件优先级
  5. 事件造成的面包数量变化(双人事件需要给出两者变化)
  6. 事件的其他效果

目前方便实现的其它效果:

  1. 延长或缩短下次的CD(包括刷新)
  2. 升级,减等级
  3. 对操作个数进行随意处理

特别处理群设置

请问可以在【special_操作名_group:设置特别处理的群】添加更改名字吗,针对不同的群使用不用的美食,a群默认买面包,b群单独设置买鸡腿

使用的时候出现报错

image
image
调用>买面包时报错,不运行
在加载插件时也有类似的报错
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.