Advertisement
Guest User

const Eris = require("eris"); const fs = require("fs"); const TOKEN = "put your token here"; const CHANNEL = "put the channel where the autofarm will happen." var bot = new Eris(TOKEN); var times = 0; setInterval(() => { bot.createMessage(CHANNEL, "pls

a guest
Oct 18th, 2020
2,173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. const Eris = require("eris");
  2. const fs = require("fs");
  3. const TOKEN = "put your token here";
  4. const CHANNEL = "put the channel where the autofarm will happen."
  5. var bot = new Eris(TOKEN);
  6.  
  7. var times = 0;
  8.  
  9. setInterval(() => {
  10. bot.createMessage(CHANNEL, "pls beg");
  11. if(times === 5) {
  12. bot.createMessage(CHANNEL, "pls dep all");
  13. times = 0;
  14. } else times++;
  15. }, 46000)
  16.  
  17. console.log("Bot is done loading!");
  18. bot.connect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement