Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Python deltabot-cli

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.

Usage

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-dir flag (--config-dir PATH or -c PATH).

Setup

Install

# Optional create virtualenv
pip install virtualenv
virtualenv .venv
source .venv/bin/activate

pip install deltabot-cli

Configure

python ./echobot.py init DCACCOUNT:https://nine.testrun.org/new

TIP: We will be using nine.testrun.org chatmail relay, you can register a new account in many other existing chatmail relays

Start

First get the bot's invite link so you can get in contact with it:

python ./echobot.py link

Then start the bot so it can process your contact request and messages:

python ./echobot.py serve

To start in debugging mode and see all the detailed events:

python ./echobot.py --loggin=debug serve