nates / ward Goto Github PK
View Code? Open in Web Editor NEW๐ A Discord verification bot using reCAPTCHA v2.
License: MIT License
๐ A Discord verification bot using reCAPTCHA v2.
License: MIT License
You can put the files on a VPS then point your domain to that VPS.
Originally posted by @nates in #23 (comment)
Tried that, website is just not loading. I have open port 8080, on cloudflare i made an A proxied record with my VPS's public IPv4
Hello, i have do all of the setup 3 times and when i join my server, it dont dm my alt, why ?
SSL_ERROR_INTERNAL_ERROR_ALERT
Cancelled.
Hey, i have a great idea for the bot. Add a command for resending the captcha link. It would be useful because some people do not look at their dms after joining servers.
If you have your DMs turned off and try to verify the bot crashes.
So when I run the bot, it generates a dynamic link with a "verify" suffix.
What do I need to do for the website to be able to recognize those dynamic links generated by the bot. Is there some sort of javascript I'm missing and need to run and integrate with the website itself?
I get an error. "Cannot get /"
I setted up the variable, it start, it say it's working but don't send the capcha when a use join.
I received the answer on what is supposed to do
"You need to fill out the variable, then when a user joins your server they will have to solve a ReCAPTCHA."
It isn't doing it.
When ever i submit the captcha, this error shows up
UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'g-recaptcha-response' of undefined
at C:\Users\Karl\Desktop\ward-master\server.js:34:123
at Layer.handle [as handle_request] (C:\Users\Karl\Desktop\ward-master\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\Karl\Desktop\ward-master\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\Users\Karl\Desktop\ward-master\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\Users\Karl\Desktop\ward-master\node_modules\express\lib\router\layer.js:95:5)
at C:\Users\Karl\Desktop\ward-master\node_modules\express\lib\router\index.js:281:22
at param (C:\Users\Karl\Desktop\ward-master\node_modules\express\lib\router\index.js:354:14)
at param (C:\Users\Karl\Desktop\ward-master\node_modules\express\lib\router\index.js:365:14)
at Function.process_params (C:\Users\Karl\Desktop\ward-master\node_modules\express\lib\router\index.js:410:3)
at next (C:\Users\Karl\Desktop\ward-master\node_modules\express\lib\router\index.js:275:10)
Any fixes?
If you see this please DM me on discord so I can get help my discord is - Spike I AM TOY#1699
I would like you to make a v3 version of this.
When I click on the link, I go to a website with a 404 error. What are the possible causes?
how do i add arc when i try to add arc's arc-sw.js in the root directory where the config.json file is located arc cant find it and i cant.
I followed all steps in the README, but upon clicking the verification link, it returns a 404 Not Found.
๎บง node index.js
[Discord] โบ โน info Logging in...
internal/fs/utils.js:269
throw err;
^
Error: ENOENT: no such file or directory, open 'private.pem'
at Object.openSync (fs.js:462:3)
at Object.readFileSync (fs.js:364:35)
at Object.main [as run] (/home/runner/ward/server.js:56:21)
at Object. (/home/runner/ward/index.js:5:11)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47 {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: 'private.pem'
}
exit status 1
this is logged in the console
How to add enviromental variables correctly in the newest version?
I can't connect to the verification link as it shows a sir it can't connect to local host. Please help and reply what can I do
Hello! first of all i'd like to say that it is easy to setup and i had no problems starting the bot. An issue did start when I tried to testing by getting an alt to test it, once i clicked on the link it came up with this. If you could help that would be great, thanks
It would be preferable if you were to contact me via Discord, my @ is LCJE#9999
Hey I think I mucked up the setup cause it says
ERROR for site owner:
Invalid domain for site key
But the key I put in is correct.
And than on replit it says Cannot GET /
the bot start what is supposed to do, it don't give any rule or say anyting
In version 1 of your bot secrets were passed by a file named as variables.js
. So it was easy for us to change each variable into process.env.variablesecret
. But now version 2 uses json
to pass secrets. So it's little bit pain to search through the JavaScript files and change the required things to environmental variables. I managed to do so and the bot is working very well.
I came across this repo yesterday https://github.com/Dragory/modmailbot/blob/master/docs/configuration.md#environment-variables
// Load config values from environment variables
const envKeyPrefix = "MM_";
let loadedEnvValues = 0;
for (const [key, value] of Object.entries(process.env)) {
if (! key.startsWith(envKeyPrefix)) continue;
const configKey = key.slice(envKeyPrefix.length)
.toLowerCase()
.replace(/([a-z])_([a-z])/g, (m, m1, m2) => `${m1}${m2.toUpperCase()}`)
.replace("__", ".");
config[configKey] = value.includes("||")
? value.split("||")
: value;
loadedEnvValues++;
}
This repo uses config.ini
to pass secrets and at same time secrets can be passed by adding a predefined prefix and changing the variables names into snake case.
So in near future can you please add a feature so that it's easy for us to pass secrets via environmental variables.
Thank you for making a very beautiful bot.
when you enable the rules and add rules what is suppose to do?
Mine doesn't work at all.
So I went into the reCaptcha v2 Website and I followed all of you instructions but at the end it asked me for the public-key? But the website gave me a site key and a secret key. I was confused at that point what I should do. And it said if you are using a domain put it in the config.json but the website forces you to use a domain or else it wont create so please help me fix some errors. number 1 error - the public key and private key, number 2 - Should me domain be like name.com or something and my bot gives me a invalid site so please help!
Im getting a error saying Error for site owner: invalid domain for site key. How do I fix that?
Hey,
I can't configure my DNS access, do you have any idea how to do it?
I added in my config: verif.mayeda.ga (the domain) and in my dns access the ip address of the hosting of my bot to the domain is it good?
Thanks in advance !
Please make a youtube tutorial.
When agreeing to rules via button in DMs you should make it so the button gets disabled after pressing it.
What settings to do for config file .
I am hosting on repl.it
The bot isn't online
Hi, I was trying to start the bot using the node index command but I got this error, can someone help me?
events.js:174
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE: address already in use 0.0.0.0:8080
at Server.setupListenHandle [as _listen2] (net.js:1280:14)
at listenInCluster (net.js:1328:12)
at Server.listen (net.js:1415:7)
at Function.listen (/sandbox/node_modules/express/lib/application.js:618:24)
at Object.main [as run] (/sandbox/server.js:45:7)
at Object. (/sandbox/index.js:5:11)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
Emitted 'error' event at:
at emitErrorNT (net.js:1307:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
Hi.
What files do I have do I upload to my site to make it work with a custom domain?
I've made a subdomain just for this.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.