Categorygithub.com/Crungeon/crungy
modulepackage
0.0.0-20200522223645-7e72dab79b21
Repository: https://github.com/crungeon/crungy.git
Documentation: pkg.go.dev

# README

Crungy

Discord bot build with Cobra and discordgo

Cobra is used to manage the command line interface of crungy discordgo is used to make calls and build out functionality for crungy on Discord

Setup

NOTE: This is not need if you are planning on running crungy from a docker container

To setup the bot update the .crungy file in the root of your home directory with the connection credentials.

If the file does not exist, create it.

Example: In file $HOME/.crungy

TOKEN: <token from discord app>

Running crungy:

Prerequisites:

  • go >= 1.13
  • GO111MODULE Environment var set to on
  • make command, for Windows

Running crungy from a container

To run crungy from a docker container you need to pass the token needed to authenticate. The best way to do this is by using an env file. Below is an example on how the env file should be set up.

Example env file

File name: .env

TOKEN=<token>

Running the container

docker run --env-file .env crungeon/crungy:latest

TODO:

  • log to boltdb
  • goreleaser to package all the things
  • Makefile target: build docker container
  • Made you look

# Packages

Copyright © 2019 NAME HERE <EMAIL ADDRESS> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
No description provided by the author