When you see someone make them smile!

Lloyd

Administrator
Staff member
Community Developer

Captcha | Corebot Addon | Installation​

How to setup reCaptcha for Corebot

Instructions​

  1. Make sure you have all the requirements installed.
  2. Download the resource from MC-Market.org or CorebotAddons.com
  3. Extract the files to your Desktop.
  4. Upload Cpatcha.js to your Corebot Addons folder.
  5. Restart your discord bot.
  6. Go to your corebot installation and go to the folder called addon_configs/ and open the file called reCaptcha.yml
  7. Edit the GuildID to your Discord Server ID (You can find this out by enabling developer mode and right clicking on the sevrer and clicking CopyID. Make sure it is in "")
  8. Configure the RoleToGive or RoleToRemove (You can use the name or id, You can also change it to false if no role to add/remove)
YAML:
GuildID: "815927213438009395"
RoleToGive: Staff
RoleToRemove: false
  1. Go to https://www.google.com/u/1/recaptcha/admin/create
  2. Name the Label as "Corebot reCaptcha"
  3. Select reCaptcha v2.
  4. Add the URL that the reCaptcha is going to be on. Example: "http://localhost:3000"
  5. Accept the reCaptcha Terms of Service.
  6. Click Submit
  7. You can copy your Site Key & Secret key to fill in the configuration.
YAML:
Captcha:
  Type: "recaptcha"
  ## Options: recaptcha, hcaptcha
  SiteKey: ""
  SrecetKey: ""
  1. Go to https://discord.com/developers/applications
  2. Select your Application
  3. Click OAuth2
  4. Add your redirect domain. Example: "http://localhost:3000/verify" (Your Server IP + Port followed by /verify)
  5. Add your redirection URL to the configuration file.
  6. Copy your Client ID & Client Secret and put them in the configuration file.
  7. Go to Bot Tab and enable "SERVER MEMBERS INTENT"
YAML:
Other:
  ClientID: ""
  ClientSecret: ""
  RedirectURL: "http://localhost:3000/verify"
  1. All done! You can tell your members to go to Your Server IP + Port or the Reverse Proxy Equivalent.



How to get rid of the website port?

If you have a VPS / Dedicated Server I will do this for you for $2.50, Just open a ticket in Lloyd's Support Lounge.
You can remove the website port by using ReverseProxy.
  • How to gen a SSL Cert? (I recommend using certbot)
    Linux Command:
Code:
apt-get install certbot -y
certbot certonly -d [domain]
Example Apaceh2 Config.
Apache config:
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        Redirect permanent / https://docs.corebotaddons.com
        ServerName docs.corebotaddons.com
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
        ServerAdmin webmaster@localhost
        ServerName docs.corebotaddons.com
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
    ProxyPreserveHost On
    ProxyPass / http://{serverip}:3000/
    ProxyPassReverse / http://{serverip}:3000/
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/docs.corebotaddons.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/docs.corebotaddons.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/docs.corebotaddons.com/fullchain.pem

</VirtualHost>

Example NGINX Config.

NGINX:
server {
        listen 80;
        root /var/www/;
        index index.html index.htm index.nginx-debian.html;
        server_name stats.59l.dev;
        location / {
    proxy_pass http://{yourop}:33;
        }
}
server {
        listen 443 ssl http2;
        server_name stats.59l.dev;
        ssl_certificate     /etc/letsencrypt/live/stats.59l.dev/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/stats.59l.dev/privkey.pem;
        root /var/www/stats;
        index index.html index.php index.htm index.nginx-debian.html;

        location / {
    proxy_pass http://{yourip}:33;
        }
}
 

© 2021 COREBOTADDONS.COM INC. ALL RIGHTS RESERVED.
Major thank you to "Dragon" from Insurgence Network for helping setting up Paid Resources!

Top