mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-25 05:40:57 +00:00
Revert invite gather to requiring membership of team 949 (Invite Gathers)
This commit is contained in:
parent
8d9a927d80
commit
10647e41e3
4 changed files with 5 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -11,3 +11,4 @@ public/vendor.js
|
|||
public/vendor.js.map
|
||||
db/data
|
||||
.env
|
||||
.idea/
|
||||
|
|
|
@ -39,10 +39,10 @@ const GATHER_CONFIGS = [
|
|||
type: "invitational",
|
||||
icon: "/inviteGather.png",
|
||||
name: "Invitational Gather",
|
||||
description: "You must be on a nsl team to join",
|
||||
// Grant invite if on any nsl team
|
||||
description: "Join on ensl.org/teams/949",
|
||||
// Grant invite if on a particular nsl team
|
||||
membershipTest: function (user) {
|
||||
return user.team !== undefined;
|
||||
return InvitationalGather.list.some(m => m.id === user.id);
|
||||
},
|
||||
serverMembershipTest: function (server) {
|
||||
return server.name.toLowerCase().indexOf("promod") === -1;
|
||||
|
|
|
@ -4,7 +4,7 @@ const winston = require("winston");
|
|||
const env = process.env.NODE_ENV || "development";
|
||||
const client = require("../ensl/client")();
|
||||
const REFRESH_INTERVAL = 1000 * 60; // Check every minute
|
||||
const invitationalTeamId = env === "production" ? 949 : 866;
|
||||
const invitationalTeamId = 949;
|
||||
|
||||
function InvitationalGather () {
|
||||
|
||||
|
|
|
@ -21,5 +21,3 @@ module.exports = {
|
|||
getRandomUser,
|
||||
getFixedUser
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue