discord-lobby
Simple Discord.js v12 Module that handle basic captive lobby functions Latest version of this module is only compatible with DiscordJS V12.1.1 and up.
This module should be configured to watch captive or read-only lobby, with a limited number of message. This module expect the user to click on a configured Emoji and will assign a configured role
Typical use-case would be to assign a role once the user read rules on a server to get out of a captive lobby.
This module can send live or delayed a welcome message to a specified channel.
Note that DiscordJS does not fetch messages posted prior to the bot launch by default.
In order to trigger reaction events on past message, this module will will fetch 100 channel from the watched channel per default.
It can be lowered or increased to a maximum of 300 to limit spaming API call.
This module can be loaded as standalone, or witin the bot.on("ready") if configured properly. This option was added with 2.1.0 and is backward compatible without any configuration change. It was added to avoid reaching the default maximum listeners to quickly.
Discord.js v11 compatibility
You can install the last version working with Discord.js v11 by using "npm install discord-lobby@discord.js-v11".
While this version should work, it's not maintainted anymore.
Installation
This module assumes you already have a basic Discord.js bot setup. Simply type the following command to install the module and it depedencies.
npm i discord-lobby
Once you've done this, setting the module will be very easy. And you can use the following to get started!
Configuration Samples
This sample will use default configuration for all options
// value no declared will be defaulted to those in the sampleconst DiscordLobby = ;
English:
This module was initialy coded by Flisher for the Bucherons.ca gamers community and the Star Citizen Organization "Gardiens du LYS".
Français:
Ce module a initiallement été conçu par Flisher pour la communauté de gamers Bucherons.ca, la communauté gaming pour adultes au Québec, et l'organisation des Gardiens du LYS dans Star Citizen.
Liens: https://www.bucherons.ca et https://www.gardiensdulys.com
Support:
You can reach me via my Discord Development Server at https://discord.gg/Tmtjkwz
History:
3.0.4 Tagged and documented v11 properly
3.0.3 Added reference to github repository
3.0.0 Initial push for DiscordJS V12.0.1
2.2.1 NodeJS Beautified - Latest Build for DiscordJS 11.5.1