[RELEASE] Bad-DiscordQueue (A discord role-based queue system) {by Badger}

Ye messages depending on your role is probably something I’ll add. I’ll add that tomorrow

2 Likes

:heart:
Just a few more suggestions is it possible to have a feature showing the queue in servers list (server name) and also having a grace (holding slot) period for players who drop configurable?

I probably won’t add those, but I’m sure it wouldn’t be hard for someone to make a pull request adding those features as my SharedQueue.lua API is quite well written

Hey mate, great release as always.
Is there any temp prio for people rejoining if they don’t have a discord prio like connectqueue? For example, someone crashes and they don’t get thrown to the back of the line on re-connection if they don’t have a management priority etc.

NEW UPDATE

You can now set connecting messages up for each different role’s queue priority. New config is displayed below:

Config = {
	Default_Prio = 500000, -- This is the default priority value if a discord isn't found
	AllowedPerTick = 5, -- How many players should we allow to connect at a time?
	Displays = {
		Prefix = '[BadgerDiscordQueue]',
		ConnectingLoop = { 
			'🦡🌿🦡🌿🦡🌿',
			'🌿🦡🌿🦡🌿🦡',
			'🦡🌿🦡🌿🦡🥦',
			'🌿🦡🌿🦡🥦🦡',
			'🦡🌿🦡🥦🦡🥦',
			'🌿🦡🥦🦡🥦🦡',
			'🦡🥦🦡🥦🦡🥦',
			'🥦🦡🥦🦡🥦🦡',
			'🦡🥦🦡🥦🦡🌿',
			'🥦🦡🥦🦡🌿🦡',
			'🦡🥦🦡🌿🦡🌿',
			'🥦🦡🌿🦡🌿🦡',
		},
		Messages = {
			MSG_CONNECTING = 'You are being connected [{QUEUE_NUM}/{QUEUE_MAX}]: ', -- Default message if they have no discord roles 
			MSG_CONNECTED = 'You are up! You are being connected now :)'
		}
	}
}

Config.Rankings = {
	-- LOWER NUMBER === HIGHER PRIORITY 
	-- ['roleID'] = {rolePriority, connectQueueMessage},
	['1'] = {500, "You are being connected (donate for a better priority) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Discord User 
	['1'] = {400, "You are being connected (Donator Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Donator 
	['1'] = {300, "You are being connected (Trial-Mod Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Trial Mod 
	['1'] = {200, "You are being connected (Mod Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Mod 
	['1'] = {100, "You are being connected (Admin Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Admin 
	['1'] = {1, "You are being connected (Management Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Management
}
1 Like

I just have one thing to say.
Youre a god.

Keep it up!

Everyone gets stuck in a queue when connecting, They can’t join the server

1 Like

This script works perfectly correctly if installed correctly. You most likely have not set it up correctly. This works fine on my server.

1 Like

There is not. As stated above, someone can make a pull request to add that at a later date if they’d like.

I’m getting this error whenever someone connects to my server
SCRIPT ERROR: @DiscordQueue/server.lua:24: attempt to concatenate a nil value

What does your config look like and when did you download the script? I made a necessary update yesterday night at like 11:30 PM EST

Config = {
	Default_Prio = 500000, -- This is the default priority value if a discord isn't found
	Displays = {
		Prefix = '',
		ConnectingLoop = { 
			'🦡🌿🦡🌿🦡🌿',
			'🌿🦡🌿🦡🌿🦡',
			'🦡🌿🦡🌿🦡🥦',
			'🌿🦡🌿🦡🥦🦡',
			'🦡🌿🦡🥦🦡🥦',
			'🌿🦡🥦🦡🥦🦡',
			'🦡🥦🦡🥦🦡🥦',
			'🥦🦡🥦🦡🥦🦡',
			'🦡🥦🦡🥦🦡🌿',
			'🥦🦡🥦🦡🌿🦡',
			'🦡🥦🦡🌿🦡🌿',
			'🥦🦡🌿🦡🌿🦡',
		},
		Messages = {
			MSG_CONNECTING = 'You are being connected [{QUEUE_NUM}/{QUEUE_MAX}]: ',
			MSG_CONNECTED = 'You are up! You are being connected now :)'
		}
	}
}

Config.Rankings = {
	-- LOWER NUMBER === HIGHER PRIORITY 
	['635210911518294016'] = 500, -- Discord User 
	['720050459951235226'] = 400, -- Donator 
	['662760679064731690'] = 300, -- Trial Mod 
	['647601674881466398'] = 200, -- Mod 
	['633946827720491031'] = 100, -- Admin 
	['633943802620542986'] = 1, -- Management
}

this is my config

You need to use the latest config. Download the resource again and set it up. This config won’t work.

NEW UPDATE

Support for adding the current queue to the server title has been added

Config = {
	Default_Prio = 500000, -- This is the default priority value if a discord isn't found
	AllowedPerTick = 5, -- How many players should we allow to connect at a time?
	HostDisplayQueue = true,
	Displays = {
		Prefix = '[BadgerDiscordQueue]',
		ConnectingLoop = { 
			'🦡🌿🦡🌿🦡🌿',
			'🌿🦡🌿🦡🌿🦡',
			'🦡🌿🦡🌿🦡🥦',
			'🌿🦡🌿🦡🥦🦡',
			'🦡🌿🦡🥦🦡🥦',
			'🌿🦡🥦🦡🥦🦡',
			'🦡🥦🦡🥦🦡🥦',
			'🥦🦡🥦🦡🥦🦡',
			'🦡🥦🦡🥦🦡🌿',
			'🥦🦡🥦🦡🌿🦡',
			'🦡🥦🦡🌿🦡🌿',
			'🥦🦡🌿🦡🌿🦡',
		},
		Messages = {
			MSG_CONNECTING = 'You are being connected [{QUEUE_NUM}/{QUEUE_MAX}]: ', -- Default message if they have no discord roles 
			MSG_CONNECTED = 'You are up! You are being connected now :)'
		}
	}
}

Config.Rankings = {
	-- LOWER NUMBER === HIGHER PRIORITY 
	-- ['roleID'] = {rolePriority, connectQueueMessage},
	['1'] = {500, "You are being connected (donate for a better priority) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Discord User 
	['1'] = {400, "You are being connected (Donator Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Donator 
	['1'] = {300, "You are being connected (Trial-Mod Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Trial Mod 
	['1'] = {200, "You are being connected (Mod Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Mod 
	['1'] = {100, "You are being connected (Admin Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Admin 
	['1'] = {1, "You are being connected (Management Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Management
}

any idea why the queue is not working? no errors or anything and its all started in the config. Its printing “player name has been set to join the queue” “player name is allowed to join now!” but it does not show the queue and connects us instantly.

Please ignore the bad audio quality

EDIT: it also now says this when someone is in game > https://i.imgur.com/Ua0YF14.png

1 Like

If your AllowedPerTick is higher than 1, this is completely normal. It will allow that many people to connect at one time.

AllowedPerTick = 5, -- How many players should we allow to connect at a time?

I fixed the hostname bug in the latest update I just pushed to GitHub. Please use the latest version. Thank you.

Thanks

The hardcap feature is broken

Fixing that, just not really able to test it myself because sadly my server doesn’t get 64/64 ever :frowning:

1 Like