mirror of
https://github.com/Ratstail91/SANCTUM.git
synced 2025-11-29 02:24:27 +11:00
Bugfixes
This commit is contained in:
@@ -17,7 +17,7 @@ exports.ProcessGameplayCommands = function(client, message, dialog) {
|
|||||||
|
|
||||||
switch (command) {
|
switch (command) {
|
||||||
case "checkin":
|
case "checkin":
|
||||||
let checkinAmount = calcRandom.random(4, 9);
|
let checkinAmount = calcRandom.Random(4, 9);
|
||||||
let checkInResponse = String(dataRequest.SendServerData("checkin", message.author.id, checkinAmount));
|
let checkInResponse = String(dataRequest.SendServerData("checkin", message.author.id, checkinAmount));
|
||||||
if (checkInResponse === "available") {
|
if (checkInResponse === "available") {
|
||||||
shared.SendPublicMessage(client, message.author, message.channel, dialog("checkin", checkinAmount));
|
shared.SendPublicMessage(client, message.author, message.channel, dialog("checkin", checkinAmount));
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ exports.LevelUp = function(client, member) { //NOTE: why is this called separate
|
|||||||
if (client.user.username == process.env.GROUP_B_LEADER_NAME && !member.roles.has(process.env.GROUP_B_ROLE)) return;
|
if (client.user.username == process.env.GROUP_B_LEADER_NAME && !member.roles.has(process.env.GROUP_B_ROLE)) return;
|
||||||
if (client.user.username == process.env.GROUP_C_LEADER_NAME && !member.roles.has(process.env.GROUP_C_ROLE)) return;
|
if (client.user.username == process.env.GROUP_C_LEADER_NAME && !member.roles.has(process.env.GROUP_C_ROLE)) return;
|
||||||
|
|
||||||
let response = String(dataRequest.sendServerData("getLevelUp", member.user.id));
|
let response = String(dataRequest.SendServerData("getLevelUp", member.user.id));
|
||||||
let responseArray = response.split(",");
|
let responseArray = response.split(",");
|
||||||
|
|
||||||
let responseMessage = responseArray[0];
|
let responseMessage = responseArray[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user