discord-bot

command module
v0.0.0-...-535303f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2019 License: MIT Imports: 11 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL