SimpleBot: Extensible bot for Delta Chat
An extensible Delta Chat bot.
To install the latest stable version of SimpleBot run the following command (preferably in a virtual environment):
pip install simplebot
To test unreleased version:
pip install --pre -U -i https://m.devpi.net/dc/master deltachat pip install https://github.com/simplebot-org/simplebot/archive/master.zip
⚠️ NOTE: If Delta Chat Python bindings package is not available for your platform you will need to compile and install the bindings manually, check deltachat documentation for more info.
Quick Start: Running a bot+plugins
$PASSWORD with the email and password for the account the bot will use)
Add an account to the bot:
simplebot init "$ADDR" "$PASSWORD"
Install some plugins:
pip install simplebot-echo
Start the bot:
SimpleBot is a base bot that relies on plugins to add functionality, for official plugins check simplebot_plugins
Everyone can publish their own plugins, search in PyPI to discover cool SimpleBot plugins
⚠️ NOTE: Plugins installed as Python packages (for example with
pip) are global to all accounts you register in the bot, to separate plugins per account you need to run each account in its own virtual environment.
Creating per account plugins
If you know how to code in Python, you can quickly create plugins and install them to tweak your bot.
Lets create an "echo bot", create a file named
echo.py and write inside:
import simplebot @simplebot.filter def echo(message, replies): """ Echoes back received message.""" replies.add(text=message.text)
That is it! you have created a plugin that will transform simplebot in an "echo bot" that will echo back any text message you send to it. Now tell simplebot to register your plugin:
simplebot plugin --add ./echo.py
Now you can start the bot and write to it from Delta Chat app to see your new bot in action.
examples folder to see some examples about how to create plugins.
Note for users
SimpleBot uses Autocrypt end-to-end encryption but note that the operator of the bot service can look into messages that are sent to it.
SimpleBot is based on deltabot
SimpleBot logo was created by Cuban designer "Dann".
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size simplebot-1.1.0-py3-none-any.whl (138.4 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size simplebot-1.1.0.tar.gz (135.1 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for simplebot-1.1.0-py3-none-any.whl