An alternative to the CleanChat, that will be shutting down soon.
- Install git
- Install .NET Core 6 SDK by following instructions on this site.
- Validate your installation by running
dotnet --info - Obtain a valid bot token at https://discord.com/developers/applications
There are two possible ways for configuring the bot. You can use either production configuration file or environmental variables.
- Copy the
appsettings.jsonfile intoappsettings.Production.json - Edit
Discord.Token,Discord.GuildIdandConnectionStrings.Defaultvariables (and others if needed) - Start the application by running
dotnet run --project MrClean --launch-profile Production
- Configure the
DISCORD__TOKEN,DISCORD__GUILDIDandCONNECTIONSTRINGS__DEFAULTenvironemental variables - This can be done by running:
export DISCORD_TOKEN="token"
export DISCORD_GUILDID=12345
export CONNECTIONSTRINGS_DEFAULT="connection string"- Finally set the
DOTNET_ENVIRONMENTenv variable to"Production" - Start the application by running
dotnet run --project MrClean
