Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const tmi = require("tmi.js"),
- http = require('http');
- http.createServer(function(request, response) {}).listen(process.env.PORT || 5000)
- const messages = [
- "Can we call her alyysa?"
- ]
- let accounts =
- [
- {
- username: "mobile_on_ios",
- password: "oauth:nsvem9utcznxik07hgjazvwufbc4jm"
- }, {
- username: "farmingcapeOSRS",
- password: "oauth:ofe5hphwq43460ufc48e9gzasvsays"
- }, {
- username: "rs_masterraider",
- password: "oauth:81tziqba02gayx3p2vaupbujgxj9n7"
- }, {
- username: "ggxhomie",
- password: "oauth:agfwmc6g22luogcwilc7g6sgbhaj1j"
- }, {
- username: "stupid_whale_in_oil",
- password: "oauth:0h8jfgel469gto6717p105trdrd0lt"
- }, {
- username: "galileanalveoli",
- password: "oauth:hxzwgwx74kimtfc3tammso3dfv1tje"
- }
- , {
- username: "shrawnspatroon",
- password: "oauth:q9fzl28ji2mdh17wmzbnf3gjlcp6gp"
- }
- ]
- function randomQuestion() {
- let account = accounts[Math.floor(Math.random()*accounts.length)];
- let message = messages[Math.floor(Math.random()*messages.length)];
- let chatter = new tmi.client({
- options: {
- debug: true
- },
- connection: {
- cluster: "aws",
- reconnect: true
- },
- identity: {
- username: account.username,
- password: account.password
- },
- channels: ["alfie"]
- });
- chatter.connect();
- setTimeout(function() {
- chatter.say("alfie", message)
- chatter.disconnect()
- }, 4800);
- }
- randomQuestion()
- setInterval(randomQuestion, 1000 * 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement