Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. const tmi = require("tmi.js"),
  2. http = require('http');
  3. http.createServer(function(request, response) {}).listen(process.env.PORT || 5000)
  4. const messages = [
  5. "Can we call her alyysa?"
  6. ]
  7. let accounts =
  8. [
  9. {
  10. username: "mobile_on_ios",
  11. password: "oauth:nsvem9utcznxik07hgjazvwufbc4jm"
  12. }, {
  13. username: "farmingcapeOSRS",
  14. password: "oauth:ofe5hphwq43460ufc48e9gzasvsays"
  15. }, {
  16. username: "rs_masterraider",
  17. password: "oauth:81tziqba02gayx3p2vaupbujgxj9n7"
  18. }, {
  19. username: "ggxhomie",
  20. password: "oauth:agfwmc6g22luogcwilc7g6sgbhaj1j"
  21. }, {
  22. username: "stupid_whale_in_oil",
  23. password: "oauth:0h8jfgel469gto6717p105trdrd0lt"
  24. }, {
  25. username: "galileanalveoli",
  26. password: "oauth:hxzwgwx74kimtfc3tammso3dfv1tje"
  27. }
  28. , {
  29. username: "shrawnspatroon",
  30. password: "oauth:q9fzl28ji2mdh17wmzbnf3gjlcp6gp"
  31. }
  32. ]
  33.  
  34. function randomQuestion() {
  35. let account = accounts[Math.floor(Math.random()*accounts.length)];
  36. let message = messages[Math.floor(Math.random()*messages.length)];
  37. let chatter = new tmi.client({
  38. options: {
  39. debug: true
  40. },
  41. connection: {
  42. cluster: "aws",
  43. reconnect: true
  44. },
  45. identity: {
  46. username: account.username,
  47. password: account.password
  48. },
  49. channels: ["alfie"]
  50. });
  51. chatter.connect();
  52. setTimeout(function() {
  53. chatter.say("alfie", message)
  54. chatter.disconnect()
  55. }, 4800);
  56. }
  57.  
  58. randomQuestion()
  59. setInterval(randomQuestion, 1000 * 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement