Having fun with DeltaChat
This repository collects nice scripts ("plugins") for the SimpleBot bot for DeltaChat.
DeltaChat is a nice e-mail based messenger that uses autocrypt. Even when you do not own your own mailserver, this ensures that all your messages get encrypted by GPG and ar fully under your control. Actually they are only encrypted if the other side also uses Autocrypt.
Dependencies
To use these scripts you need:
- DeltaChat binding for python
pip install deltachat
- SimpleBot
pip install simplebot
Some plugins use python modules:
- bot-count:
pip install randfacts wikipedia
Getting started
SimpleBot needs to be initialized with mail accounts. It uses IMAP and SMTP. I use an .env
file to store my credentials like following:
#.env
ADDR="[email protected]"
PASSWORD="SuPeR_SaFe_PaSsWoRd"
- Add the account(s)
cd
into the directory where you stored the .py plugin files. A plugin is identified by it's file name.- Add the plugin(s) to your account(s)
- Start the service and enjoy!
$ cd deltabot && ls deltabot
> myFancyPlugin.py
$ source .env
$ simplebot init "$ADDR" "$PASSWORD"
$ simplebot -a [email protected] plugin -a myFancyPlugin.py
$ simplebot -a [email protected] serve &>/dev/null &