This is the repository that hosts the official Discord bot for SC Market.
- Discord bot for order management and fulfillment
- NEW: AWS SQS integration for asynchronous event processing
- Queue-based event processing for better scalability
This project requires Python 3.12. You can install requirements with
python -m pip install -r requirements.txtThe bot now uses AWS SQS queues for all event processing. 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
- Enable SQS mode: Set
ENABLE_SQS=trueandENABLE_DISCORD_QUEUE=true
The bot can be launched from the Docker configuration in the backend.