HibiKier / nonebot_plugin_russian

Nonebot2插件 俄罗斯轮盘,通过每日'轮盘签到'来获取金币,然后以金币作为赌注,通过'装弹'来对其他人发起决斗,轮流开枪直到运气不好的人先去世。
MIT License
26 stars 4 forks source link

签到发生错误 #12

Closed Yonnemy2nd closed 2 years ago

Yonnemy2nd commented 2 years ago

之前有重复装弹的错误,更新之后签到没有回应。 后台如下,不知道是哪里出了问题

05-20 17:10:51 [ERROR] nonebot | Running matcher <Matcher from nonebot_plugin_russian, type=message, priority=5, temp=False> failed.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/python3/lib/python3.10/multiprocessing/spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "/usr/local/python3/lib/python3.10/multiprocessing/spawn.py", line 129, in _main
    return self._bootstrap(parent_sentinel)
  File "/usr/local/python3/lib/python3.10/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/local/python3/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/python3/lib/python3.10/site-packages/uvicorn/subprocess.py", line 76, in subprocess_started
    target(sockets=sockets)
  File "/usr/local/python3/lib/python3.10/site-packages/uvicorn/server.py", line 60, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/usr/local/python3/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/python3/lib/python3.10/site-packages/nonebot/message.py", line 153, in _check_matcher
    await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
> File "/usr/local/python3/lib/python3.10/site-packages/nonebot/message.py", line 202, in _run_matcher
    await matcher.run(bot, event, state, stack, dependency_cache)
  File "/usr/local/python3/lib/python3.10/site-packages/nonebot/internal/matcher.py", line 668, in run
    await self.simple_run(bot, event, state, stack, dependency_cache)
  File "/usr/local/python3/lib/python3.10/site-packages/nonebot/internal/matcher.py", line 635, in simple_run
    await handler(
  File "/usr/local/python3/lib/python3.10/site-packages/nonebot/dependencies/__init__.py", line 92, in __call__
    return await self.call(**values)
  File "/usr/local/python3/lib/python3.10/site-packages/nonebot_plugin_russian/__init__.py", line 67, in _
    msg, gold = russian_manager.sign(event)
  File "/usr/local/python3/lib/python3.10/site-packages/nonebot_plugin_russian/data_source.py", line 103, in sign
    if self._player_data[str(event.group_id)][str(event.user_id)]["is_sign"].date() == datetime.now().date :
AttributeError: 'bool' object has no attribute 'date'
HibiKier commented 2 years ago

fb826d1e210b93df358a0e094e845f7172601eaa