A simple example of a Discord Bot in Go.
!ping
: replies withPong!
- TODO: Add more commmands
This assumes you already have a working Go installation.
Clone the repository: git clone https://github.com/AtomicLemon/discordbot-go
cd discordbot-go
Get discordgo library: go get github.com/bwmarrin/discordgo
Build program: go build
On Windows, run ./main.exe -t YOUR-BOT-TOKEN
or on unix, use ./main -t YOUR-BOT-TOKEN