mirror of
https://git.wownero.com/lza_menace/tg-bot.git
synced 2024-08-15 00:23:12 +00:00
add note about adding commands for development
This commit is contained in:
parent
3e02d82599
commit
95b8405686
1 changed files with 4 additions and 0 deletions
|
@ -47,3 +47,7 @@ There are 2 modules in this repo:
|
|||
- `admin` - management commands
|
||||
|
||||
To use them, ensure you're in the virtualenv and run `python3 -m tipbot` or `python3 -m admin`
|
||||
|
||||
## Development
|
||||
|
||||
To add more commands, create a new Python file under [tipbot/commands](tipbot/commands); copy another one for an example. Add another import for the command function in [tipbot/commands/__init__.py](tipbot/commands/__init__.py) and add the command to the `all_commands` dictionary in the same file.
|
||||
|
|
Loading…
Reference in a new issue