Skip to content

good-gartic/mr-clean

Repository files navigation

Mr. Clean bot

An alternative to the CleanChat, that will be shutting down soon.

How to build and run this bot

Prerequisities

Configuration

There are two possible ways for configuring the bot. You can use either production configuration file or environmental variables.

Configuring the bot by using a configuration file

  • Copy the appsettings.json file into appsettings.Production.json
  • Edit Discord.Token, Discord.GuildId and ConnectionStrings.Default variables (and others if needed)
  • Start the application by running dotnet run --project MrClean --launch-profile Production

Configuring the bot by using environmental variables

  • Configure the DISCORD__TOKEN, DISCORD__GUILDID and CONNECTIONSTRINGS__DEFAULT environemental variables
  • This can be done by running:
export DISCORD_TOKEN="token"
export DISCORD_GUILDID=12345
export CONNECTIONSTRINGS_DEFAULT="connection string"
  • Finally set the DOTNET_ENVIRONMENT env variable to "Production"
  • Start the application by running dotnet run --project MrClean

Mr. Clean logo