Skip to main content

oauthjoiner module

joins accounts to servers using discord oauth.

info

this module requires you to create a discord app.

usage

  1. create a discord app at the discord developer portal. click "new application" in the top right. give it a name, agree to tos, then click "create".
  2. create a bot. go to the left sidebar, and click on "bot". under the section titled "token" click "reset token". save the token you are given.
  3. get the oauth2 information. go the the left sidebar, and click on "oauth2". save your client id. then, click "reset secret" to get a new client secret. save this as well.
  4. fill in the config with the values you saved. put the token in bot_token, the client id in client_id, and the client secret in client_secret.
  5. add your bot to the server. scroll down in the oauth2 section to the card titled oauth2 url generator. select bot. a new menu will appear, showing bot permissions. you can select administrator. set the integration type to "guild install". copy the generated url, and visit it in a browser. it will show a menu to add your bot to a server, so choose the one you would like to add your accounts to.
  6. get the id of the guild (server) you want to add your accounts to. right click the server and use "copy id". if you don't have this option, google search "enable developer mode discord". put this guild id in the config under guild_id.
  7. enable the module in the config, and run lightsocket.

config

oauthjoiner

enabled boolean
toggles the oauthjoiner module.

nickname_on_join boolean
whether or not to give a nickname upon joining.

guild_id string
the server id to join.

bot_token string
the bot token from your discord app.

client_id string
the client id from your discord app.

client_secret string
the client secret from your discord app.

redirect_uri string
the redirect uri for oauth. you should not need to change this.

scope string
the required oauth scopes. you should not need to change this.