Finished progression

This commit is contained in:
2018-10-20 21:13:18 +11:00
parent 34dff69af8
commit b2393a2985
5 changed files with 117 additions and 77 deletions

View File

@@ -32,8 +32,20 @@ client.on("message", function(msg) {
//handle command
switch(command) {
//used for debugging
case "ping":
shared.ChangeFaction(client, process.env.GROUP_B_ROLE, msg.channel, msg.member);
case "create":
shared.ChangeFaction(client, process.env.GROUP_A_ROLE, "bot-spam", msg.member);
break;
case "xp":
shared.AddXP(client, msg.author, parseInt(args));
break;
case "levelup":
shared.LevelUp(client, msg.member);
break;
case "rankup":
shared.RankUp(client, msg.member, parseInt(args));
break;
}
});
@@ -41,4 +53,5 @@ client.on("message", function(msg) {
//actually log in
client.login(process.env.DEVELOPER_TOKEN);
//TODO: change usernames to tags throughout the shared library
//TODO: change usernames to tags throughout the shared library
//FIXME: The server currently queries chest count, which is not in the database.