NEKOとDOGの処理について
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
せっかくファイル分けしているのでそこに処理を投げませんかというお気持ちです、
NEKOの例でいうと、
```python
#Message.py
if message_main in src.command.message_list_NEKO:
await src.NEKO.send_neko(message)
```
これは
```python
content = message.content
if src.NEKO.content_is_command(content):
await src.NEKO.send_neko(message)
```
※関数名は適当
こういう形でもいいし、条件判断も関数内に入れて1文で終わらす形でもいいかな
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading Message.py and the existing src.command.message_list_NEKO and src.NEKO.send_neko paths. Trace how NEKO and DOG commands are currently selected, then decide how the command check should be delegated to the corresponding module; done means the routing remains correct while the processing logic is moved out of Message.py.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100