This bot automatically facilitates the adding of doujin to a sheet, to which users can express interest in purchasing them. Made for Comiket. Requires Python 3.11 or newer.
pip3 install -r requirements.txt
- Generate a Discord API Token
- Create a new application here. Make sure to record the token. If you forgot, navigate to Bot and reset the token
- Enable Message Content Intent (Bot -> Message Content Intent)
- Go to https://currency.getgeoapi.com/ and create and account and get an API key
- Create a
.env
file as follows
TOKEN="<discord token>"
CURRENCY_API_KEY="<Currency API Key>"
# Mongodb
MONGO_INITDB_ROOT_USERNAME=<MongoDB Admin Username>
MONGO_INITDB_ROOT_PASSWORD=<MongoDB Admin Password>
MONGO_USERNAME=<MongoDB Non-admin Username>
MONGO_PASSWORD=<MongoDB Non-admin Password>
DATABASE_URL=mongodb://${MONGO_USERNAME}:${MONGO_PASSWORD}@comiket-db:27017/comiket
- Invite the bot to your server by generating an OAuth2 link (OAuth2 -> URL Generator), selecting the
bot
scope and enabling the following permissions:
- Send Messages - this allows for the bot to show a preview of the doujin in the chat
- Embed Links - this allows for the bot to show a preview of the doujin in the chat
- Copy the generated link into your browser and invite the bot to your server. Add doujins to track using
!add <melonbooks_url>
.