Sign inSign up

kingjulian2011/sourcexchange-bot

By kingjulian2011

•Updated 29 days ago

This is a prebuild Docker Image for the sourcexchange-sync-bot

Image
Integration & delivery
0

2.3K

kingjulian2011/sourcexchange-bot repository overview

⁠SourceXchange Sync Bot

A Discord bot that automatically syncs user roles based on product purchases from SourceXchange⁠. When users purchase your products on SourceXchange, this bot can grant them corresponding roles in your Discord server.

⁠Features

  • šŸ”„ Role Syncing - Sync Discord roles based on SourceXchange product purchases
  • šŸ“¦ Product Listing - View all products a user has purchased
  • šŸ” Secure API Integration - Uses SourceXchange API with bearer token authentication
  • ⚔ Slash Commands - Modern Discord slash command interface
  • šŸ›”ļø Permission Handling - Robust role management with error handling

⁠Quick Start

šŸ“– View Installation Guide⁠ - Complete setup instructions available in the Wiki

⁠Available Commands

  • /products - Shows all products the user has purchased on SourceXchange
  • /sync - Syncs the user's Discord role based on their product purchases

⁠How It Works

  1. User purchases a product on SourceXchange with their Discord account linked
  2. User runs /sync command in your Discord server
  3. Bot fetches user's product accesses from SourceXchange API
  4. Bot checks if user has purchased the configured product
  5. Bot adds or removes the configured role accordingly

⁠Development

⁠Code Formatting
npm run format        # Format code with Prettier
npm run format:check  # Check code formatting
⁠Linting
npm run lint      # Run ESLint
npm run lint:fix  # Fix ESLint issues automatically
⁠CI/CD

The project includes GitHub Actions workflows for:

  • āœ… Prettier formatting checks
  • āœ… ESLint validation

⁠Support

⁠Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

⁠License

This project is licensed under the MIT License - see the LICENSE.md⁠ file for details.

⁠Disclaimer

This bot is not officially affiliated with SourceXchange. Make sure to comply with SourceXchange's Terms of Service and API usage guidelines.

Tag summary

Content type

Image

Digest

sha256:ef1f4fccc…

Size

94.9 MB

Last updated

29 days ago

docker pull kingjulian2011/sourcexchange-bot