mirror of
https://github.com/Ratstail91/SANCTUM.git
synced 2025-11-29 02:24:27 +11:00
Factions can be joined when all necessary bots and the server are running
This commit is contained in:
@@ -77,11 +77,6 @@ exports.ChangeFaction = function(client, factionRole, channel, member, fn) {
|
||||
member = guild.members.get(user.id);
|
||||
}
|
||||
|
||||
if (member.roles.has(factionRole)) {
|
||||
//can't change to this faction
|
||||
fn("alreadyJoined");
|
||||
}
|
||||
|
||||
let handleResponse = async function(response) {
|
||||
if (response === "conversionLocked") { //can't change too fast
|
||||
fn(response);
|
||||
@@ -97,5 +92,5 @@ exports.ChangeFaction = function(client, factionRole, channel, member, fn) {
|
||||
fn(response);
|
||||
};
|
||||
|
||||
dataRequest.OnServerData("conversion", handleResponse, member.user.id);
|
||||
dataRequest.OnServerData("conversion", handleResponse, member.user.id, factionRole);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user