Advertisement
Slowstone72

Mining Bot (unfinished)

Dec 20th, 2024
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.89 KB | Software | 0 0
  1. /* Ancient code published for archival purposes. May or may not work or be relevant.
  2. Feel free to do whatever you want with this, if anything.
  3. Archive from 2017-10-07 - contents may be older. */
  4.  
  5. //Mining Bot
  6. BOTNAME = '[MINING]';
  7.  
  8. setInterval(function() {
  9. BOTNAME = '[MINING]';
  10. MPP.client.sendArray([{ m: "userset", set: { name: '< ' + BOTNAME + ' >' } }]);
  11. setTimeout(function() {
  12. MPP.client.sendArray([{ m: "userset", set: { name: '> ' + BOTNAME + ' <' } }]);
  13. }, 1000);
  14. setTimeout(function() {
  15. BOTNAME = '[/HELP]';
  16. }, 4000);
  17. setTimeout(function() {
  18. BOTNAME = '[INSERT CREDITS TO PLAY]';
  19. }, 5000);
  20. }, 5000);
  21.  
  22. MPP.client.on("a", function(msg) {});
  23. function saveObject(object) {
  24. localStorage.setItem(object, JSON.stringify(object));
  25. }
  26.  
  27. function loadObject(object) {
  28. retrievedObject = localStorage.getItem(object);
  29. console.log('retrievedObject: ', JSON.parse(retrievedObject));
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement