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.json
file intoappsettings.Production.json
- Edit
Discord.Token
,Discord.GuildId
andConnectionStrings.Default
variables (and others if needed) - Start the application by running
dotnet run --project MrClean --launch-profile Production
- Configure the
DISCORD__TOKEN
,DISCORD__GUILDID
andCONNECTIONSTRINGS__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