Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@shikhir-arora
Created April 30, 2017 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shikhir-arora/34c76e50830a81f8b17bd79c5ebf61fc to your computer and use it in GitHub Desktop.
Save shikhir-arora/34c76e50830a81f8b17bd79c5ebf61fc to your computer and use it in GitHub Desktop.
Quick guide for basicverify - getting the token and inviting it to your guild

First, create an OAuth2 bot using Discord's API. For this application, you will need the token.

The basicverify application is currently designed for single-servers per instance. This works fine for the case I intended it to be used for.

If you have done this before, then this should be pretty straightforward. If not, go visit https://discordapp.com/developers/applications/me/create to create an application. Name the application with something you want to name it and save it - then choose "generate a Bot user" afterwords and generate the token, client ID, etc.

If you plan to give your bot to other servers, check the "Public Bot" when generating it, so others can use your invite link. Otherwise, it will only work if (you) - the person who created the bot token - invites the bot.

**Save your client ID and token. They are different things :-) **

Visit: https://discordapi.com/permissions.html#470109248

On the bottom left, paste in your client ID (not token!) and it will generate an invite link. Use this link to invite the bot to your server. You must have Manage Server permissions. The bot will have a pre-made role assigned with the permissions from that link, which are correct for this bot. No other permissions are needed.

Now, take your token, which should never be given out, and (after cloning the repo), use it to edit the line in verify.js - specifically:

const TOKEN = ''; // Bot users only. Your OAuth2 bot token will go here (not client ID). 

(you can see it here: https://github.com/shikhir-arora/basicverify/blob/master/verify.js#L12)

Please continue reading the README page for the rest of the install information. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment