Current avaliavle on @roomInnoBot in testing mode
-
Convenient buy list
- /add
- /list
- Callback on list
- Update previous 5 lists after changing or adding
-
Cleaning reminder
- /nextcleaning
- /setbuilding
- /setreminder
- /schedule
-
Default module
- /start, /help, /cancel
-
Admin module
- #restart
-
Setup
.evn
file- Create
.env
file in root directory:mv .env.example .env
- Fill the file using your telegram token, admin alias, etc
- Create
-
Start the bot using docker:
$ ./forever_run.sh
-
Create a directory in
modules/
with name of your module -
Create a
__init__.py
file in the directory of your module -
Write a
setup
function that will register all your handlers in the bot:
def setup(dp: Dispatcher, *args, **kwargs):
dp.register_message_handler(your_cmd_function, Command('your_cmd'))
-
Create
message.py
file in the directory of your module. Use it to store all your text messages -
Attach the module to the bot in
bot.py
file:
from modules.your_module import setup as setup_your_module
#...
if __name__ == '__main__':
setup_your_module(dp)
- Implement all your thoughts!
- import constants and utils from modules.common
- add/change Models from modules.database.models
- add dependencies in the
requirements.txt