mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-29 07:32:14 +00:00
golden's invite idea
This commit is contained in:
parent
a9917096c9
commit
57be4bd141
1 changed files with 10 additions and 10 deletions
|
@ -37,16 +37,16 @@ const GATHER_CONFIGS = [
|
||||||
},*/
|
},*/
|
||||||
{
|
{
|
||||||
type: "invitational",
|
type: "invitational",
|
||||||
icon: '/inviteGather.png',
|
icon: "/inviteGather.png",
|
||||||
name: "Invitational Gather",
|
name: "Invitational Gather",
|
||||||
description: "Join on ensl.org/teams/949",
|
description: "You must be on a nsl team to join",
|
||||||
// Grant invite if on list
|
// Grand invite if on any nsl team
|
||||||
membershipTest: function (user) {
|
membershipTest: function (user) {
|
||||||
return InvitationalGather.list.some(m => m.id === user.id);
|
return user.team ? true : false;
|
||||||
},
|
},
|
||||||
serverMembershipTest: function (server) {
|
serverMembershipTest: function (server) {
|
||||||
return server.name.toLowerCase().indexOf("promod") === -1;
|
return server.name.toLowerCase().indexOf("promod") === -1;
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
// {
|
// {
|
||||||
// type: "casual",
|
// type: "casual",
|
||||||
|
|
Loading…
Reference in a new issue