This example is about creating a bot with the bot framework deltabot-cli-go, which gives a hook based interface and a cli interface to configure your bot.
This is a go framework for bots, see ../README.md for other approaches to write bot in go.
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
--folder
flag (--folder PATH
or-f PATH
).
For the bot to work, first deltachat-rpc-server
program needs to
be installed and available in your PATH
. To install it from source run:
cargo install --git https://github.com/deltachat/deltachat-core-rust/ deltachat-rpc-server
For more info and pre-built binaries check: https://github.com/deltachat/deltachat-core-rust/tree/master/deltachat-rpc-server
go mod tidy
go run ./echobot.go init [email protected] password
go run ./echobot.go serve