Skip to content

Latest commit

 

History

History

go_deltabot_cli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Go deltabot-cli

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.

Usage

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).

Setup

Installing deltachat-rpc-server

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

Install

go mod tidy

Configure

go run ./echobot.go init address@example.com password

Start

go run ./echobot.go serve