This is the repository that hosts the official Discord bot for SC Market.
- Discord bot for order management and fulfillment
- Web server for receiving events from the main website
- NEW: AWS SQS integration for asynchronous event processing
- Support for both synchronous and queued processing modes
This project requires Python 3.12. You can install requirements with
python -m pip install -r requirements.txtThe bot supports both traditional web server mode and AWS SQS queue mode. See SQS Configuration Guide for detailed setup instructions.
- Set your Discord bot token:
DISCORD_API_KEY=your_token - Configure AWS credentials:
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY - Set queue URLs from your deployed CDK stack:
DISCORD_QUEUE_URL=https://sqs.us-east-2.amazonaws.com/ACCOUNT/DiscordQueuesStack-discord-queueBACKEND_QUEUE_URL=https://sqs.us-east-2.amazonaws.com/ACCOUNT/DiscordQueuesStack-backend-queue
- Choose your mode:
- Web Server Mode: Set
ENABLE_WEB_SERVER=trueandENABLE_SQS=false - SQS Mode: Set
ENABLE_SQS=trueandENABLE_DISCORD_QUEUE=true
- Web Server Mode: Set
The bot can be launched from the Docker configuration in the backend.