https://github.com/deeplook/dcbot
https://github.com/deeplook/dcbot
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/deeplook/dcbot
- Owner: deeplook
- License: apache-2.0
- Created: 2020-12-24T20:56:57.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-06T19:58:00.000Z (over 5 years ago)
- Last Synced: 2025-01-23T06:12:07.823Z (over 1 year ago)
- Language: Python
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dcbot
[](https://mybinder.org/v2/gh/deeplook/dcbot/main?urlpath=lab)
This is a first attempt at writing a [bot](https://bots.delta.chat/) for [DeltaChat](https://delta.chat/en/) using its [Python bindings](https://py.delta.chat/).
**Warning:** Because the standard mybinder servers will not allow network access to IMAP/SMTP ports this will actually *not* work using the "launch binder" button above! Running this repo with `repo2docker` locally should work, though.
To get started with a local [repo2docker](https://github.com/jupyterhub/repo2docker), make sure you have it installed and run it similar to this, with your own values:
```bash
pip install jupyter-repo2docker
repo2docker --debug -e HEREMAPS_API_KEY=$HEREMAPS_API_KEY -e ADDR=email@example.com -e PASSWORD=supersecret .
```
Then, in the running docker container, start `binder/start_bot.sh`.
On Linux this bot should work without binder/repo2docker after installing the dependencies in binder/environment.yml, setting the environment variable, and starting the bot like this:
```bash
export HEREMAPS_API_KEY=MY_API_KEY
export ADDR=email@example.com
export PASSWORD=supersecret
binder/start_bot.sh`
```