This repository was archived by the owner on Sep 2, 2022. It is now read-only.
Replies: 2 comments 9 replies
-
|
https://github.com/Huyu2239/ExpandBot/blob/b49b41a79691d2078565a848102e828f2ca8ee82/cogs/on_message.py#L67 |
Beta Was this translation helpful? Give feedback.
9 replies
-
同意。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Cog に分けているということは,各機能を MyBot 自体に負わせずに別のファイルに切り出したいって話だと思うんだよ.
それなのに,例えば
https://github.com/Huyu2239/ExpandBot/blob/b49b41a79691d2078565a848102e828f2ca8ee82/main.py#L43-L49
ここに関しては,/cogs/mute.py でしか使わないデータが main.py:MyBot に定義されてる.
これはおかしくて, /cogs/mute.py の中で実装してあるべきだと思う.
このあたりの問題が複数積もった結果 #34 のような心配が生まれているのではないかな.
もし mute.py のなかで定義する方法がイメージできないのなら PR 出すから言って欲しい.
Beta Was this translation helpful? Give feedback.
All reactions