Discord bot used by Nitrox team.
- Ask for the token (as opposed to reset)
- Create "appsettings.Development.json" file and set the token value.
- Add the bot to your private server by following the steps (bot invite URL is generated here):
https://discord.com/api/oauth2/authorize?client_id=405122994348752896&permissions=17179943952&scope=bot - Execute
dev-run.sh
script.
- With the Rider IDE you can connect to a docker host via SSH to push & build the container remotely.
- To build it from CLI, see below.
- Build the docker container:
docker build --tag nitroxdiscordbot:latest -f ./NitroxDiscordBot/Dockerfile .
- Run the docker container:
docker run --name nitroxdiscordbot nitroxdiscordbot:latest
- Purging channels of "old" messages
{
"Token": "DISCORD_TOKEN_HERE",
"CleanupDefinitions": [
{
"ChannelId": 598546552918900774,
"MaxAge": "1.0:0",
"Schedule": "* * * * *"
}
]
}
MaxAge is a TimeSpan
format for 1 day