Skip to content

Commit

Permalink
Fixed process not closing when channel is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
LakeYS committed Jul 18, 2017
1 parent 31c7e06 commit 5ace2de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ client.on('ready', () => {

channel = client.channels.find("id", channelid);

if(channel == 'null')
if(!channel)
{
console.log("Failed to identify channel with ID '" + channelid + "'");
process.exit();
Expand Down

0 comments on commit 5ace2de

Please sign in to comment.