Commit 8d1dcdfd by Rowedahelicon

Added a rejoin / leave addition to the !on and !off commands

parent f06659e4
......@@ -59,10 +59,10 @@ steamFriends.on('message', function(source, message, type, chatter) {
switch (message){
case '!off':
if(source==steamRecord){ botOn = 0; steamFriends.sendMessage(steamRecord, 'Bot disabled' , Steam.EChatEntryType.ChatMsg); }
if(source==steamRecord){ botOn = 0; steamFriends.sendMessage(steamRecord, 'Bot disabled' , Steam.EChatEntryType.ChatMsg); steamFriends.leaveChat(groupID); }
break;
case '!on':
if(source==steamRecord){ botOn = 1; steamFriends.sendMessage(steamRecord, 'Bot activated' , Steam.EChatEntryType.ChatMsg); }
if(source==steamRecord){ botOn = 1; steamFriends.sendMessage(steamRecord, 'Bot activated' , Steam.EChatEntryType.ChatMsg); steamFriends.joinChat(groupID); }
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment