/discord-link

Useful script for Login with Discord or Discord Account Linking systems. When you link your account, it adds you to the server and give a specific role. Storage user discord id and access_token in a database

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

discord-link

Useful script for Login with Discord or Discord Account Linking systems.

When you link your account, it adds you to the server and give a specific role. Storage user discord id and access_token in a database

Installing Instructions

1. Create a discord application and bot; get CLIENT ID & CLIENT SECRET from OAuth2 Tab
2. Get your bot token.
3. Edit file
3.1 Update your database info (line 3,5,7,13)
3.2 Update Client info (line 37,39)
3.3 Update redirect uri (line 69)
3.4 Update line 53,131,235,405
3.5 Update $bottoken (line 181, 259, 351, 429)
4. Add redirect uri from OAuth2 Tab (Discord Developer Portal)
Redirect uri should be same with file directory
5. Upload .sql and other files
6. Script should be work, if a problem happens: ecy#5776 & https://discord.gg/dtQbk66cfb

DEMO Link: https://emircanyildirim.com/api/dcauth2.php