Skip to content

A Discord bot for storing and retrieving pre-defined messages.

Notifications You must be signed in to change notification settings

disunity-hq/disinfo

Repository files navigation

Disinfo

A Discord bot for storing and retrieving pre-defined messages.

Overview

Discord has a feature where bots are able to send a special kind of message not available to normal users. These are called "embeds".

Disinfo allows users to store and retrieve embed messages by keyword. This is handy for sharing often referenced information between users.

Building

Disinfo is built with Dotnet Core 2.2 and Paket is used for dependency management.

Installing dependencies

Paket is included in the repo at .paket/paket.exe. Run it to install the dependencies:

$ .paket\paket.exe install

On Linux:

$ mono .paket\paket.exe install

Building the project

Once the dependencies have been restored, use the dotnet command to build or run the project:

$  dotnet build Disunity.Disinfo/Disunity.Disinfo.csproj

Or

$  dotnet run --project Disunity.Disinfo/Disunity.Disinfo.csproj

Using Docker and Docker-compose

If you have Docker and Docker Compose installed, then building and running is very simple:

First copy the .env.template to .env and edit it with your desired settings:

$ cp .env.template .env
$ emacs .env

Then simply run:

$ docker-compose up

Environment Variables

Disinfo has a number of environment variables which control its behavior:

Environment Variable Description
Discord__Token Your Discord bot token
Db__Path The filename of your Disinfo database

About

A Discord bot for storing and retrieving pre-defined messages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published