- Go 1.12
- Download from here: https://golang.org/dl/
- Update Go using instructions here: https://gist.github.com/nikhita/432436d570b89cab172dcf2894465753
- Verify with
go version
- Follow instructions at https://github.com/udhos/update-golang
- Discord Application with Bot support
- Docker (optional)
- Create a
.env
file see example. - Install the dependencies
- Verify you've enabled go modules by setting to your environment variables
GO111MODULE=on
- Run
go mod download
to install dependencies to your local cache. - Or run
go mod vendor
to install dependencies to a vendor folder in the project.
- Verify you've enabled go modules by setting to your environment variables
- Verify dependencies are installed with
go mod verify
- Run
docker-compose build
thendocker-compose up
- Done!
These values are made up you must supplement with your own credentials.
- Get your bot token from discord from here.
- Enable developer mode for Discord then right click channel or user to get ID.
- Grab your test/real tokens from https://iexcloud.io/console/
cp .env.example .env
- Fill in
.env
with your credentials
Assuming you have filled in the .env
file tests with the following
docker-compose up
docker-compose exec bot bash
cd cmd
go test