Skip to content

BryanSLam/discord-bot

Repository files navigation

discord-bot

Requirements

  • Go 1.12

Method 1

Method 2

Get it running

  • 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 dependencies are installed with go mod verify
  • Run docker-compose build then docker-compose up
  • Done!

ENV example

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

Run tests

Assuming you have filled in the .env file tests with the following

docker-compose up
docker-compose exec bot bash
cd cmd
go test

About

not weenie corp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages