This example is about creating a bot with the bot framework deltabot-cli-py, which gives a hook based interface and a cli interface to configure your bot.
This is a python framework for bots, see ../README.md for other approaches to write bot in python.
Per default the bot data and configuration is stored in your user directory (
Library/Application Support/bot_name/,.config/bot_name/, on windows probably in%APPDATA%).You can change configuration location with
--config-dirflag (--config-dir PATHor-c PATH).
# Optional create virtualenv
pip install virtualenv
virtualenv .venv
source .venv/bin/activate
pip install deltabot-clipython ./echobot.py init DCACCOUNT:https://nine.testrun.org/newTIP: We will be using nine.testrun.org chatmail relay, you can register a new account in many other existing chatmail relays
First get the bot's invite link so you can get in contact with it:
python ./echobot.py linkThen start the bot so it can process your contact request and messages:
python ./echobot.py serveTo start in debugging mode and see all the detailed events:
python ./echobot.py --loggin=debug serve