From 95b84056864f95af47f331d75b6b9e4d1fc19da0 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Wed, 5 Aug 2020 23:01:27 -0700 Subject: [PATCH] add note about adding commands for development --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index fe159f8..87be1fd 100644 --- a/README.md +++ b/README.md @@ -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.