Giter VIP home page Giter VIP logo

nonebot-plugin-mahjong-scoreboard's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nonebot-plugin-mahjong-scoreboard's Issues

question

作者大大你好 我在nonebot上安装scoreboard后出现了如下问题

内部错误:<class 'sqlalchemy.exc.IntegrityError'>(sqlite3.IntegrityError) NOT NULL constraint failed: groups.prev_game_code_base
[SQL: INSERT INTO groups (binding_qq, running_season_id, prev_game_code_base, prev_game_code_identifier) VALUES (?, ?, ?, ?)]
[parameters: (568691329, None, None, None)]

请问这是否是我有什么参数未配置正确呢?

开启赛季时报错

输入命令开启赛季,根据提示输入y后报错。

12-02 21:02:58 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_mahjong_scoreboard.controller.season_manage, lineno=264) failed.
Traceback (most recent call last):
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\ssttkkl_nonebot_utils\errors\error_handler.py", line 88, in run_excepting
await coro
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\ssttkkl_nonebot_utils\interceptor\handle_error.py", line 24, in receive_error_message
await matcher.finish()
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 571, in finish
raise FinishedException
nonebot.exception.FinishedException: FinishedException()

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 25, in
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\nonebot_init_.py", line 331, in run
get_driver().run(*args, **kwargs)
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 201, in run
uvicorn.run(
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\uvicorn\main.py", line 587, in run
server.run()
File "C:\Users\Administrator\QQ-bot1.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 633, 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 600, in run_forever
self._run_once()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1896, 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 "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher
await _run_matcher(

File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\nonebot\message.py", line 428, in run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 846, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 821, in simple_run
await handler(
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\nonebot\dependencies_init
.py", line 113, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\ssttkkl_nonebot_utils\interceptor\handle_error.py", line 27, in wrapper
return await func(*args, **kwargs)
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\nonebot_plugin_mahjong_scoreboard\controller\season_manage.py", line 300, in start_season_end
await season_service.start_season(matcher.state["season"].id, operator.id)
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\nonebot_plugin_mahjong_scoreboard\service\season_service.py", line 74, in start_season
await _ensure_permission(season, operator_user_id)
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\nonebot_plugin_mahjong_scoreboard\service\season_service.py", line 16, in _ensure_permission
if not await is_group_admin(operator_user_id, season.group_id):
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\nonebot_plugin_mahjong_scoreboard\service\group_service.py", line 33, in is_group_admin
return await platform_func(bot).is_group_admin(session)
File "C:\Users\Administrator\QQ-bot1.venv\lib\site-packages\ssttkkl_nonebot_utils\platform\func_manager.py", line 19, in getattr
raise UnsupportedBotError()
ssttkkl_nonebot_utils.platform.func_manager.UnsupportedBotError

[/结算]同时结算多人点数

希望能够实现同时结算四人点数,只需要发送一条指令就可以,目前四个人都发结算一共八条消息有点刷屏
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.