If you are using Discord based roles or whitelist system, make sure you have entered your bot token and guild ID of your discord server. Also make sure you have entered correcr role ID and name you want to show in queue list
Edit the server name and image in the JSON file.
Support :
I take suggestions from my Discord server seriously. So if you want a feature in any of my scripts, please make sure you suggest it and we will try to implement it.
When you are processing the queue do you have it getting info from the discord bot every time it processes it? I’m trying to find a queue system that doesn’t cause timeouts from a discord bot when there is over 120 players.
Right now yes, but that is the only way you can process discord roles for a player.
The script also adds a “queue” table in DB which can be used to add permanent members using steam, fivem or discord IDs which can be used to avoid running it through discord bot.
If you have any ideas, I can work on adding them. I was thinking to cache a player’s role in database for 24 hours but that’s the best idea I could come up with.
I was thinking of this as a work around as well, But that might not work if permissions have been changed within that period of time.
When looking at this script a few days ago, I thought about a hybrid discord/sql queue, and instead of going off of discord permissions only for priority queue, if utilizing the tebex integration, editing the package to give the priority data directly to the server, but also then just giving them the role in discord as well, but not checking their discord roles if they already have a priority in the database.
Also, once in the queue, not have it check the users discord for priority after first initial connection. So basically creating a temp table with the users in the queues information so it doesn’t keep querying the discord bot unless it has to.
My script already uses tebex API integration. But that also has a limit on how many requests you can do in certain period of time and those numbers are even worse than Discord’s API limit.
True, I suggest to everyone using Tebex API to add discord roles directly from Tebex delivery to avoid sending duplicate requests to tebex.
Yeah my script does not check for roles if a player has connected in last 30 minutes. No duplicate requests.
If you could let me use the discord bot temporary to check does the discord API lets me access more than 1000 members, I would appreciate it. I want to make it so it saves all discord members with a certain configured role in database and then query database instead of discord every time someone enters queue. This would limit discord API requests to 1 requests every 1000 members you have.