Deltabot allows to implement and run chat bots for Delta Chat.
Install
To install deltabot run the following command (preferably in a virtualenv):
$ pip3 install deltabot
Try typing “deltabot –version” to verify it worked.
Initialize the bot
Configure an e-mail address for your chat bot (using example credentials):
deltabot init tmp.vd9dd@testrun.org OzrSxdx5hiaD
Within a Delta Chat app (or another e-mail client), you may now send a chat /help message to tmp.vd9dd@testrun.org and should get a short list of available commands in the reply.
Try out an example “calculator” bot
Checkout the deltabot repo to play with some example bots:
git clone https://github.com/deltachat/deltabot cd deltabot
Now you can register an example bot and send/receive messages:
Register the example “mycalc bot”:
$ deltabot add-module example/mycalc.py
Now start serving the chat bot:
$ deltabot serve
Within an Delta Chat app, you may now send a chat /help message to tmp.vd9dd@testrun.org and should get a short list of available commands in the reply. Send /mycalc 23+20-1 and wait for the the answer.
Note that the bot-answer speed largely depends on the provider you are using for the bot-email address. On test servers we get 3-5 seconds full roundtrips, between question and answer arriving back.
Writing setuptools plugins
You can implement your plugin as a proper python package or wheel by using setuptools. Have a look in the examples/deltachat_echo example directory which contains a complete example.
note for users
Deltabot uses Autocrypt end-to-end encryption but note that the operator of the bot service can look into messages that are sent to it.
Plugins
For many more examples and Deltabot plugins see:
Metadata
Release files for deltabot 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| deltabot-0.8.0.tar.gz | 486.6 kB | Without provenance | Details |
Release files / deltabot-0.8.0.tar.gz
| Download URL | deltabot-0.8.0.tar.gz |
|---|---|
| Size | 486.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f1098ba81817f8c089ff0b969f443e467f7085985bdf16aa9f1f316b142f0a7
|
|
BLAKE2b-256 checksum How to use checksums |
c6d790c24bbeef1e6b7e73dfe30e51e96699f5db05984497831ae2d87e93d9d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
devpi-server/5.5.0 (py3.7.3; linux)
|
Security for deltabot 0.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.