Code Monkey home page Code Monkey logo

discordwhitelist's Introduction

๐Ÿ“  FAXES ๐Ÿ“ 

Twitter Follow GitHub followers discord website
status vscode spotify

Hi, I'm FAXES, a Full Stack Developer located in Australia, mainly working on Node based websites, I have previously worked on FiveM resources, Discord bots, PHP websites, and many more. I've been in the programming world since 2017 and have fully self taught myself from various resources online. I love to code and it's a passion turned into a business which I currently operate.

Feel free to shoot me a follow or star some repositories!


Discord Invite

๐Ÿ”ง Technologies & Tools


GitHub Statistics

Code Time

Lines of code

๐Ÿฑ My GitHub Data

๐Ÿ“ฆ 151.4 kB Used in GitHub's Storage

๐Ÿ† 75 Contributions in the Year 2024

๐Ÿšซ Not Opted to Hire

๐Ÿ“œ 96 Public Repositories

๐Ÿ”‘ 7 Private Repositories

I'm an Early ๐Ÿค

๐ŸŒž Morning                169 commits         โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   09.29 % 
๐ŸŒ† Daytime                937 commits         โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   51.51 % 
๐ŸŒƒ Evening                562 commits         โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   30.90 % 
๐ŸŒ™ Night                  151 commits         โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   08.30 % 

๐Ÿ“… I'm Most Productive on Tuesday

Monday                   269 commits         โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   14.79 % 
Tuesday                  325 commits         โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   17.87 % 
Wednesday                232 commits         โ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   12.75 % 
Thursday                 284 commits         โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   15.61 % 
Friday                   246 commits         โ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   13.52 % 
Saturday                 205 commits         โ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   11.27 % 
Sunday                   258 commits         โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   14.18 % 

๐Ÿ“Š This Week I Spent My Time On

๐Ÿ’ฌ Programming Languages: 
JavaScript               7 hrs 25 mins       โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   44.43 % 
EJS                      5 hrs 3 mins        โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   30.21 % 
CSS                      2 hrs 24 mins       โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   14.41 % 
Bash                     54 mins             โ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   05.38 % 
JSON                     17 mins             โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   01.74 % 

๐Ÿ”ฅ Editors: 
VS Code                  16 hrs 43 mins      โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ   100.00 % 

๐Ÿฑโ€๐Ÿ’ป Projects: 
TN-24July                13 hrs 5 mins       โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘   78.23 % 
FaxStore                 1 hr 12 mins        โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   07.20 % 
WebPanel-main            55 mins             โ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   05.51 % 
Unknown Project          41 mins             โ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   04.15 % 
webt                     39 mins             โ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   03.98 % 

๐Ÿ’ป Operating System: 
Windows                  16 hrs 43 mins      โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ   100.00 % 

I Mostly Code in Lua

Lua                      38 repos            โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   44.71 % 
JavaScript               28 repos            โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   32.94 % 
HTML                     4 repos             โ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   04.71 % 
Shell                    1 repo              โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   01.18 % 
Python                   1 repo              โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   01.18 % 

discordwhitelist's People

Contributors

braxtongpoll avatar dependabot[bot] avatar enzo2991 avatar faxes avatar itz-hyperz avatar lze3 avatar snyk-bot 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

discordwhitelist's Issues

Occasional Connection Failed > Failed handshake

Using DiscordWhiteList in a legit, clean and new server. pepe-core.
Pretty often we get an issue with the script where it says (while loading) that it's still checking the ID and eventually
closes on the user with the message
"Failed handshake to server - transfer closed with outstanding read data reamaining - CURL error code 18 (Transferred a partial file).

What to do about this issue. need to stop the script and reload it. While the script is stopped, everyone that wants can join and won't be removed when not in the discord.

Issue

Await failure: citizen:/scripting/lua/scheduler.lua:768: An error happened while calling export IsRolePresent of resource discord_perms (citizen:/scripting/lua/scheduler.lua:126: @discord_perms/server.lua:77: attempt to concatenate a nil value (field 'data')
stack traceback:
@discord_perms/server.lua:77: in function 'IsRolePresent'
citizen:/scripting/lua/scheduler.lua:389: in function citizen:/scripting/lua/scheduler.lua:388
[C]: in function 'xpcall'
citizen:/scripting/lua/scheduler.lua:388: in function citizen:/scripting/lua/scheduler.lua:387), see above for details
stack traceback:
@discord-whitelist/server.lua:25: in upvalue 'handler'
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218

userHasRole not working

exports('userHasRole', (src, roles) => {
if(!work) return;
return new Promise((res, rej) => {
getUserDiscord(src, function(userId) {
if(userId) {
axios(/guilds/${guildId}/members/${userId}).then((resDis) => {
if(!resDis.data) {
res(false)
}
const hasRole = resDis.data.roles.some((cRole, i) => resDis.data.roles.includes(roles[i]));
if(hasRole) {
res(true)
} else {
res(false)
}

            }).catch((err) => {
                res(false)
            });
        } else {
            res(false)
        }
    });
});

});

I don't know why but it's not working...
When printing resDis.data it doesn't shows anything.

I'm using this to call the exports exports['DiscordWhitelist']:userHasRole(src, role)
[ src ] = source
[ role ] = id of the role in a string like "1011371533727444992"

Errors, players with right roles cant connect.

Error:
[script:DiscordWhitel] Error: {"message":"Request failed with status code 404","name":"Error","stack":"Error: Request failed with status code 404\n at createError (C:\\Users\\admin\\Desktop\\MNRP\\resources\\[DISCORD]\\DiscordWhitelist\\node_modules\\axios\\lib\\core\\createError.js:16:15)\n at settle (C:\\Users\\admin\\Desktop\\MNRP\\resources\\[DISCORD]\\DiscordWhitelist\\node_modules\\axios\\lib\\core\\settle.js:17:12)\n at IncomingMessage.handleStreamEnd (C:\\Users\\admin\\Desktop\\MNRP\\resources\\[DISCORD]\\DiscordWhitelist\\node_modules\\axios\\lib\\adapters\\http.js:269:11)\n at IncomingMessage.emit (node:events:406:35)\n at endReadableNT (node:internal/streams/readable:1343:12)\n at processTicksAndRejections (node:internal/process/task_queues:83:21)","config":{"url":"https://discord.com/api/v9/guilds/734134817632813096/members/830025348032364554","method":"get","headers":{"Content-Type":"application/json","Authorization":"Bot XXXXXXXXXXXXTOKEN","User-Agent":"axios/0.21.4"},"baseURL":"https://discord.com/api/v9","transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false}}} [script:DiscordWhitel] [4.0] Cody McMiller is not in the guild. [script:DiscordWhitel] SCRIPT ERROR in promise (unhandled): TypeError: Cannot read properties of undefined (reading 'data') [script:DiscordWhitel] > <unknown> (@DiscordWhitelist/server.js:140) [script:DiscordWhitel] > processTicksAndRejections (node:internal/process/task_queues:96)

Some players cannot connect (like 70%) , if they have one of the roles.

We keep getting this:
FillOS is not whitelisted. Cache created [script:DiscordWhitel] [4.0] FillOSs Roles: [ [script:DiscordWhitel] "734134817632813103" [script:DiscordWhitel] ]
Or just
"name" is not whitelisted. (but he have the role)

And here is our config:

image

API Failure

Hellow,

i set it right, and it work 80% of the times,

and the 20% :
[script:DiscordWhitel] There was an issue with the Discord API request. Is the guild ID & bot token correct?

I don't understand why...

You're not allowlisted.

Getting that prompt even tho I don't set that kind of message. My solution for that is to restart script for them can go in the city.

CURL Errorcode 18

ฤฑdk why but some thing worng with script. I add role ids. but I am getting CURL Errorcode 18 ฤฑdk doesn't any don't whitelist message at all , I remove all my resoruce when I test this only 2. Can you help me I am in your discord thanks.

It doesn't display the message on error

Hello, I installed the plugin but it doesn't show the information with discord url etc when the user is not member of the discord server. It displays the default. Am I missing something?

Thanks!

Connectionproblem for some users

Hello, i just have isntalled the DiscordWhitelist bot, and it works fine for the most of people. Im the Serverowner and i and some other ones getting this error in the console:

[script:DiscordWhitel] SCRIPT ERROR in event `playerConnecting': TypeError: Cannot read properties of null (reading 'indexOf')
[script:DiscordWhitel] > getUserDiscord (@DiscordWhitelist/server.js:34)
[script:DiscordWhitel] > (@DiscordWhitelist/server.js:41)
[script:DiscordWhitel]

Screenshot from a user: https://cdn.discordapp.com/attachments/800940362482057286/940277760889348137/unknown.png

[Solved] Change "whitelist" to "allowlist"

Hi can i ask you why on var notWhitelistedMessage i put the word "Whitelist" it automatically change it to "Allowlist" please ?
And how to remove that please

Thank you (and nice script <3)

DiscordWhitelist Not working

i tried several times i read documentery 1000 time nothing happens !! i did the same in video but its not working

Whitelisted Role

When a whitelisted role is given to someone and they try and load in it says they still aren't whitelisted, but when I restart the resource it starts working. How can i fix this?

script error

it was working fine no problems then we did a restart this morning and suddenly get this error and we do not know why this is what people who are in the discord and are whitelisted get [
script:DiscordWhitel] SCRIPT ERROR in event `playerConnecting': TypeError: Cannot read property 'indexOf' of null
[script:DiscordWhitel] > getUserDiscord (@DiscordWhitelist/server.js:50)
[script:DiscordWhitel] > (@DiscordWhitelist/server.js:57)

Player not getting Cached

Some Players when they join, don't get cached.
I have enabled debug mode to see what the problem is.
But for some reason it says nothing(not getting cached)
grafik

But after Server Restart it works again:
grafik

I have the newest version of DiscordWhitelist installed.

Refresh Discord Roles

Does somebody know where i can change the refresh time. When i put a whitelist role in discord and connect to fivem it doesn't work instantly. There is probably some refresh time right? Anybody here that knows the answer?

Guild Error while connecting

Hey, tonight all of a sudden every player got the following error when connecting.... However, changes were made neither to the Discord server, nor to the resource

Player Error Message: Guild not detected. It seems you're not in the guild for this community

Server Error Message: [script:DiscordWhitel] PLAYERNAME is not in the guild.

Thanks for help :)

SCRIPT ERROR when someone tries to join that isnt on our discord server

If someone tries to join our fivem server that is not on our discord server we get this error in our server-console:

[script:DiscordWhitel] SCRIPT ERROR in event `playerConnecting': TypeError: Cannot read property 'indexOf' of null
[script:DiscordWhitel] > getUserDiscord (@DiscordWhitelist/server.js:50)
[script:DiscordWhitel] > <unknown> (@DiscordWhitelist/server.js:57)

the player who tries to connect gets a timeout message without any info to join our discord.

Please help

error connexion

Yo,
I have an issue with whitelist discord.
When we passed 70 players, someone got error msg that say they arent allowlist but they got the role.
When an influx of player, discord whitelist like crashing whitout error in console...
Did you have a solution ?

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.