/discordbot-go

A simple example of a Discord Bot in Go.

Primary LanguageGo

Discordbot-go

A simple example of a Discord Bot in Go.

Commands:

  • !ping: replies with Pong!
  • TODO: Add more commmands

Usage

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