Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Apr 8, 2021
1 parent b24bb57 commit 3335d98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function eval(msg) {
if (!vc) {
logconsole(`${msg.author.tag} trying to pull me to the world of undefined!`, "DECLINE")
msg.channel.send("Can't enter \"undefined\" channel. You must be in the vc first!")
return
}
else if (currVC == vc) {
logconsole(`Trying to enter the VC that already in. Aborted. Commanded by ${msg.author.tag}`, "DECLINE")
Expand Down Expand Up @@ -332,6 +333,7 @@ function debug(commandstr) {
case "logout":
client.destroy()
logconsole("Successfully safely logged out", "LOGOUT")
process.exit(0)
default:
logconsole(`Unknown Command "${command[0]}"`, "DEBUG-ERROR")
}
Expand Down

0 comments on commit 3335d98

Please sign in to comment.