Git Product home page Git Product logo

ward's People

Contributors

binary avatar nates avatar rodrigoricky avatar snaildos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ward's Issues

Using custom domains

          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

DM probleme

Hello, i have do all of the setup 3 times and when i join my server, it dont dm my alt, why ?

Command for resending verification

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.

Syntax Error

Screenshot 2022-10-03 200253

I have a syntax error, and I use replit.com. I tried making a new bot token, copy and paste all of my role IDs, server IDs, etc., but it still gives me this error. It worked earlier with the previous bot token. What can be the issue?

Crash Problem

If you have your DMs turned off and try to verify the bot crashes.

Dynamic Link Generation

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?

Website

I get an error. "Cannot get /"

not working

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.

Cannot read property 'g-recaptcha-response' of undefined

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?

My Discord

If you see this please DM me on discord so I can get help my discord is - Spike I AM TOY#1699

Please.

I would like you to make a v3 version of this.

website error

When I click on the link, I go to a website with a 404 error. What are the possible causes?

how to add arc

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.

404 Not Found

I followed all steps in the README, but upon clicking the verification link, it returns a 404 Not Found.

Error while starting the bot

๎บง 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

About localhost

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

Unable To Go To The Captcha site.

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
image

Need some help setting up

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 /

what should I do

the bot start what is supposed to do, it don't give any rule or say anyting

Feature Request for passing secrets via environmental variables

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

Config.js

// 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.

Rules

when you enable the rules and add rules what is suppose to do?

help me

Mine doesn't work at all.

reCaptcha Website Help

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!

Error For Site Owner

Im getting a error saying Error for site owner: invalid domain for site key. How do I fix that?

Config My Dns

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 !

Tutorial

Please make a youtube tutorial.

Suggestion

When agreeing to rules via button in DMs you should make it so the button gets disabled after pressing it.

Error deploying

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)

Using a custom domain

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.