BUGFIX: Replaced userID with user in messaging.js

This commit is contained in:
2018-10-19 06:25:23 +11:00
parent 9b627d3581
commit 31a13e000d
2 changed files with 6 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ client.on("disconnect", function() {
client.on("message", function(msg) {
//only react to commands
if (msg.content.slice(0, 1) != "!") {
if (msg.content.slice(0, 1) !== process.env.PREFIX) {
return;
}
@@ -39,4 +39,4 @@ client.on("message", function(msg) {
});
//actually log in
client.login("TOKEN");
client.login(process.env.DEVELOPER_TOKEN);