Implemented levelling and logging

This commit is contained in:
2018-10-29 13:56:04 +11:00
parent e62b030ab3
commit 245564fe11
2 changed files with 77 additions and 17 deletions

View File

@@ -141,12 +141,11 @@ function processBasicCommands(client, message) {
case "wallet": //DEBUGGING
shared.OnServerData("wallet", (amount) => {
shared.SendPublicMessage(client, message.channel, "Wallet: " + amount);
shared.SendPublicMessage(client, message.author, message.channel, "Wallet: " + amount);
}, message.author.id);
return true;
//ADAM and the faction leaders print the intros in the gate
//TODO: prune the unneeded intros from each bot
case "intro":
if (shared.IsAdmin(client, message.author) && message.channel.id == process.env.GATE_CHANNEL_ID) {
shared.SendPublicMessage(client, client.channels.get(process.env.GATE_CHANNEL_ID), dialog("intro"));
@@ -160,6 +159,11 @@ function processBasicCommands(client, message) {
message.delete(1000);
}
return true;
case "debugxp":
shared.SendServerData("addXP", message.author.id, args[0]);
shared.SendPublicMessage(client, message.author, message.channel, "debug XP added");
return true;
}
return false;