Skip to content

Installation

Void edited this page Jan 6, 2022 · 2 revisions

Discord-hcaptcha

Welcome in this wiki I will explain in detail how to install Discord-hcaptcha, first off install all the needed dependencies this was explained on the repository readme, after that we will create a Discord application here hit new application and copy the settings from the picture below.

After that we will get the client_secret, client_id, hcaptcha_secret, bot_token, guild_id and role_id.

Before we start after the creation of the Discord application make sure to make a bot out of it and make it join your server you can get the invite link by doing as shown in the picture below.

This is where the bot_token is located copy it and paste it inside the config.json

In the picture below is the client id, client secret and the redirect url, make sure to use the same redirect url as the one in the config.json if there's none set inside the application or the config.json then it will result in a error.

Now we will get the hcaptcha secret you can get it by doing this, create a account here then read the documentation of hcaptcha it should be straight forward on how to create a key you can find out more over here make sure to then add it inside the config.json.

after that we only need the role id and the guild id these are fairly easy to get just goto Discord and enable developer mode if you don't have it enabled.

Then copy the role id as shown below.

Finally get the guild id by right clicking on the name of your guild on Discord as shown below.

Make sure you fill everything in inside the config.json after that run the command npm run start and the goto your browser and head to http://localhost:8081/

Be cautious that you do not share any of the keys/tokens inside the config.json and hide them from the public if these are shared in anyway it can cause serious security issues which I am not responsible for!

Clone this wiki locally