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.
Disinfo is built with Dotnet Core 2.2 and Paket is used for dependency management.
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
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
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
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 |