Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bot.on('message', function (user, userID, channelID, message, evt) {
  2.     if (message.toLowerCase().substring(0, 5) == "!play"){
  3.                 var col = message.toLowerCase().substring(6);
  4.                
  5.                 switch (col){
  6.                     case 'red':
  7.                         if(c436 == ":white_circle:"){
  8.                             c436 = ":red_circle:";
  9.                             var board =  c41 + c42 + c43 + c44 + c45 + c46 + c47 + "\n" +
  10. c48 + c49 + c410 + c411 + c412 + c413 + c414 + "\n" +
  11. c415 + c416 + c417 + c418 + c419 + c420 + c421 + "\n" +
  12. c422 + c423 + c424 + c425 + c426 + c427 + c428 + "\n" +
  13. c429 + c430 + c431 + c432 + c433 + c434 + c435 + "\n" +
  14. c436 + c437 + c438 + c439 + c440 + c441 + c442;
  15.                             bot.sendMessage({
  16.                                     to: channelID,
  17.                                     message: (board)
  18.                                 });
  19.                            
  20.                         }
  21.                         else if (c436 == ":red_circle:" || ":large_blue_circle:"){
  22.                             if(c429 == ":white_circle:"){
  23.                                 c429 = ":red_circle:";
  24.                                 var board =  c41 + c42 + c43 + c44 + c45 + c46 + c47 + "\n" +
  25. c48 + c49 + c410 + c411 + c412 + c413 + c414 + "\n" +
  26. c415 + c416 + c417 + c418 + c419 + c420 + c421 + "\n" +
  27. c422 + c423 + c424 + c425 + c426 + c427 + c428 + "\n" +
  28. c429 + c430 + c431 + c432 + c433 + c434 + c435 + "\n" +
  29. c436 + c437 + c438 + c439 + c440 + c441 + c442;
  30.                                 bot.sendMessage({
  31.                                     to: channelID,
  32.                                     message: (board)
  33.                                 });
  34.                             }
  35.                         }                              
  36.                         else if (c429 == ":red_circle:" || ":large_blue_circle:"){
  37.                             if(c422 == ":white_circle:"){
  38.                                 c422 = ":red_circle:";
  39.                                 var board =  c41 + c42 + c43 + c44 + c45 + c46 + c47 + "\n" +
  40. c48 + c49 + c410 + c411 + c412 + c413 + c414 + "\n" +
  41. c415 + c416 + c417 + c418 + c419 + c420 + c421 + "\n" +
  42. c422 + c423 + c424 + c425 + c426 + c427 + c428 + "\n" +
  43. c429 + c430 + c431 + c432 + c433 + c434 + c435 + "\n" +
  44. c436 + c437 + c438 + c439 + c440 + c441 + c442;
  45.                                 bot.sendMessage({
  46.                                     to: channelID,
  47.                                     message: (board)
  48.                                 });
  49.                             }
  50.                         }
  51.                  break;
  52.                 }
  53.     }
  54. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement