smoothretro82

LNGI bot

Nov 17th, 2025 (edited)
47
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. a = 0
  2. b = 0
  3. c = 0
  4. e = "0"
  5. function update() {
  6. b++
  7. if (b%7 == 0) {
  8. cursor.x = -99
  9. cursor.y = 8
  10. for (let i = 0; i < e.length; i++) {
  11. writeChar(" ", 1)
  12. }
  13. a = a + 1/8
  14. c = a*Math.log(a)/30
  15. if (c < 21) {
  16. e = (Math.floor(10**c)).toString()
  17. } else {
  18. e = (Math.floor(10**(c%1) * 10**18) / 10**18).toString() + "e+" + (Math.floor(c)).toString()
  19. }
  20. cursor.x = -99
  21. cursor.y = 8
  22. for (let i = 0; i < e.length; i++) {
  23. writeChar(e[i], 1)
  24. }
  25. }
  26. requestAnimationFrame(update)
  27. }
  28. requestAnimationFrame(update)
  29. w.on("msg", (data) => {
  30. if (data.msg == "a" && data.nick == "CalculatorBot") {
  31. a = 0
  32. }
  33. });
Advertisement
Comments
Add Comment
Please, Sign In to add comment