bot-ssttkkl / nonebot-plugin-mahjong-scoreboard Goto Github PK
View Code? Open in Web Editor NEW日麻计分器。为面麻群友提供日麻对局分数记录。根据马点进行PT精算,统计PT增减,支持对局与榜单查询与导出。
License: MIT License
日麻计分器。为面麻群友提供日麻对局分数记录。根据马点进行PT精算,统计PT增减,支持对局与榜单查询与导出。
License: MIT License
在bot上装了新版本之后启动会报错,报错日志在这里
log.txt
感觉现在只保留整数位误差有点大了
作者大大你好 我在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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.