Skip to content

Subscriber entitlement sync from d.gg to Discord servers

License

Notifications You must be signed in to change notification settings

destinygg/dggiscord

Repository files navigation

dggiscord

User Commands

Command Description Permissions
!sync Sync your Dgg subscription and/or username All Users
!syncother @Mention Sync the mentioned user's Dgg subscription and username Privileged Users Only
!sync-settings [{enable|disable} {subscription|username|all}] View or change sync settings Privileged Users Only

Note: A privileged user is the server owner, the bot owner, or a user with one of the following permissions: Manage Roles, Manage Channels, Manage Server, Administrator.

Creating a Bot User

  1. Create a new application in the Discord developer portal

  2. Enable required intents

    1. Open the app's Bot settings
    2. Under Privileged Gateway Intents, enable Server Members Intent and Message Content Intent
  3. Invite the bot to your server

    1. Navigate to the app's OAuth2 settings
    2. Under Scopes, toggle the bot checkbox
    3. Under Bot Permissions, toggle the Manage Roles and Manage Nicknames checkboxes
    4. Open the Generated URL in your web browser
    5. Follow the on-screen instructions to complete the process

Runnin' It

Docker:

mkdir cfg
cp config.example.json ./cfg/config.json
<edit config.json>
docker-compose up

Console:

git clone https://github.com/destinygg/dggiscord.git .
mkdir cfg
cp config.example.json ./cfg/config.json
<edit config.json>

python3 ./dggiscord/app.py [--config <alternative location>]

Updatin' It

docker-compose up -d --build

Database Migrations

Database migrations run automatically when the application starts. The system will create a migrations table to track applied migrations, and execute any that are pending. You can manage migrations manually using ./dggiscord/migrate.py.

About

Subscriber entitlement sync from d.gg to Discord servers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •