Merge pull request #159 from AngelRionCervi/master

golden's invite idea
This commit is contained in:
Absurdon 2020-04-15 22:11:36 +02:00 committed by GitHub
commit 7714d9d27b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,16 +37,16 @@ const GATHER_CONFIGS = [
},*/
{
type: "invitational",
icon: '/inviteGather.png',
name: "Invitational Gather",
description: "Join on ensl.org/teams/949",
// Grant invite if on list
membershipTest: function (user) {
return InvitationalGather.list.some(m => m.id === user.id);
},
serverMembershipTest: function (server) {
return server.name.toLowerCase().indexOf("promod") === -1;
}
icon: "/inviteGather.png",
name: "Invitational Gather",
description: "You must be on a nsl team to join",
// Grant invite if on any nsl team
membershipTest: function (user) {
return user.team !== undefined;
},
serverMembershipTest: function (server) {
return server.name.toLowerCase().indexOf("promod") === -1;
},
}
// {
// type: "casual",