create a bot for you application and set permissions
add the bot to your discord server
go to the "OAuth2" tab, select scope "bot", navigate to the URL that gets generated
copy the bot token from the "Bot" tab and set the CIV_BOT_TOKEN environment variable
Application Setup
make sure you have go installed by running go version, you should see some output like /usr/local/bin/go
clone the repository
cd into the root directory
install dependencies with go get github.com/ecshreve/civ-bot-go
run the application with make run
now you can go to whatever channel you added the bot to in the previous section and interact with the bot, enter /civ help in the channel to see information about how to use the bot
References
Here's some links that I used as reference throughout the project: