Skip to content

daystram/go-play-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-play-discord

Github Actions Docker Pulls MIT License

A Discord bot to run and format Go code via the Go Playground.

Installation

Go version < 1.16

$ go get -u github.com/daystram/go-play-discord/cmd/go-play-discord

Go 1.16+

$ go install github.com/daystram/go-play-discord/cmd/go-play-discord@latest

Usage

After providing the required configuration, the bot can simply be run as follows:

$ go-play-discord

Docker

Instead of installing the command itself, you can run the bot via Docker:

$ docker run --name go-play-discord --env-file ./.env -d daystram/go-play-discord

Configuration

The bot could be configured by setting the following environment variables.

Name Description Default Required
BOT_TOKEN Discord Bot token ""

License

This project is licensed under the MIT License.