Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bot.on('message', function (user, userID, channelID, message, evt) {
- if (message.toLowerCase().substring(0, 5) == "!play"){
- var col = message.toLowerCase().substring(6);
- switch (col){
- case 'red':
- if(c436 == ":white_circle:"){
- c436 = ":red_circle:";
- var board = c41 + c42 + c43 + c44 + c45 + c46 + c47 + "\n" +
- c48 + c49 + c410 + c411 + c412 + c413 + c414 + "\n" +
- c415 + c416 + c417 + c418 + c419 + c420 + c421 + "\n" +
- c422 + c423 + c424 + c425 + c426 + c427 + c428 + "\n" +
- c429 + c430 + c431 + c432 + c433 + c434 + c435 + "\n" +
- c436 + c437 + c438 + c439 + c440 + c441 + c442;
- bot.sendMessage({
- to: channelID,
- message: (board)
- });
- }
- else if (c436 == ":red_circle:" || ":large_blue_circle:"){
- if(c429 == ":white_circle:"){
- c429 = ":red_circle:";
- var board = c41 + c42 + c43 + c44 + c45 + c46 + c47 + "\n" +
- c48 + c49 + c410 + c411 + c412 + c413 + c414 + "\n" +
- c415 + c416 + c417 + c418 + c419 + c420 + c421 + "\n" +
- c422 + c423 + c424 + c425 + c426 + c427 + c428 + "\n" +
- c429 + c430 + c431 + c432 + c433 + c434 + c435 + "\n" +
- c436 + c437 + c438 + c439 + c440 + c441 + c442;
- bot.sendMessage({
- to: channelID,
- message: (board)
- });
- }
- }
- else if (c429 == ":red_circle:" || ":large_blue_circle:"){
- if(c422 == ":white_circle:"){
- c422 = ":red_circle:";
- var board = c41 + c42 + c43 + c44 + c45 + c46 + c47 + "\n" +
- c48 + c49 + c410 + c411 + c412 + c413 + c414 + "\n" +
- c415 + c416 + c417 + c418 + c419 + c420 + c421 + "\n" +
- c422 + c423 + c424 + c425 + c426 + c427 + c428 + "\n" +
- c429 + c430 + c431 + c432 + c433 + c434 + c435 + "\n" +
- c436 + c437 + c438 + c439 + c440 + c441 + c442;
- bot.sendMessage({
- to: channelID,
- message: (board)
- });
- }
- }
- break;
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement