Skip to content

rchhong/comiket-tracker-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comiket Discord Bot

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.

Setup

  1. pip3 install -r requirements.txt
  2. Generate a Discord API Token
    1. Create a new application here. Make sure to record the token. If you forgot, navigate to Bot and reset the token
    2. Enable Message Content Intent (Bot -> Message Content Intent)
  3. Go to https://currency.getgeoapi.com/ and create and account and get an API key
  4. 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
  1. 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
  1. Copy the generated link into your browser and invite the bot to your server. Add doujins to track using !add <melonbooks_url>.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages