This repository is now obsolete and not maintained, in favour of main DevSubmarine Discord Bot, which has this feature built in, and more.
!lukeadd <word>
was a running joke for a long while now. Let's make the joke real.
This is a Discord bot that will allow people add Luke's misspellings to database, and then retrieve them.
To create the bot, go to Discord Developer Portal and create a new application. Make sure to grab Token from Bot
tab, as it'll be needed in steps below.
To add the bot to the guild (server), go to OAuth2
tab, and create a new link. Make sure to select both bot
and applications.commands
scopes.
Pre-requirements:
- .NET 5.
- MongoDB Cluster.
- The bot is added to target guild (server). See Creating bot above.
Run locally:
- Download or clone.
- Run Database Bootstrapper tool to create MongoDB collections.
- Add
appsecrets.json
file ("Content" for Build Action, and "Copy always" or "Copy if newer" for Copy to Output Directory). - Populate with secrets. See appsecrets.Example.json for example.
- Ensure IP Address of the host that will run the bot is whitelisted in your MongoDB cluster.
- Build and run.
Run on host:
- Follow steps 1 to 5 above.
- Publish LukeDictionary.Bot project.
- Move published files to host machine.
- Run
dotnet LukeDictionary.Bot.dll
, create a systemd service, or build and run Docker image using Dockerfile.
Note: Do NOT push this docker image to remote repo (like dockerhub) if you created
appsecrets.json
file. Just don't, unless you want yor secrets compromised.
Copyright (c) 2021 DevSubmarine & TehGM
Licensed under Apache 2.0 License.