Advertisement
Cool_Colton

Untitled

Jul 12th, 2021
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. options:
  2. server: "servername"
  3. botname: "name"
  4. irc: 864209225748447232
  5.  
  6. on load:
  7. create vixio bot:
  8. login to "ODY0MjA3MzM3MTE5MDIzMTE1.YOyFzQ.sE1TkOs6GUrCDxhpwxlg6Vjrt9k" with the name botname
  9. enable the guild members intent
  10. enable the guild bans intent
  11. enable the guild emojis intent
  12. enable the guild invites intent
  13. enable the guild voice states intent
  14. enable the guild presences intent
  15. enable the guild messages intent
  16. enable the guild message reactions intent
  17. enable the direct messages intent
  18. enable the direct message reactions intent
  19. enable the direct message typing intent
  20.  
  21. on chat:
  22. replace all "`" in message with ""
  23. if {lastmessage::bot} is true:
  24. set {currentchat::bot} to "%{currentchat::bot}%%nl%%uncolored player's prefix% %uncolored player's name% » %message%"
  25. edit {msg} to show "```%{currentchat::bot}%```"
  26. else:
  27. send "```%uncolored player's prefix% %uncolored player's name% » %message%```" to channel with id "{@irc}" with {@botname} and store it in {msg}
  28. set {currentchat::bot} to "%uncolored player's prefix% %uncolored player's name% » %message%"
  29. set {lastmessage::bot} to true
  30.  
  31. on guild message received:
  32. if "%event-channel%" contains "irc":
  33. set {lastmessage::bot} to false
  34. set {_d} to "&a%the discord nickname of event-member in event-guild%"
  35. set {_d} to "&b%{_d}%: &f%event-message%"
  36. replace all "%nl%" in {_d} with " "
  37. broadcast "&3(DISCORD) %colored {_d}%"
  38.  
  39.  
  40. on disconnect:
  41. create embed:
  42. set the thumbnail of embed to "https://cravatar.eu/head/%player%/128.png"
  43. set the title of the embed to "%player% has left the game."
  44. set the author info of the embed to author named "{@server}.minehut.gg" with no url
  45. set the color of the embed to Red
  46. send last created embed to channel with id "{@irc}" with "{@botname}"
  47. wait 1 tick
  48. mark "{@botname}" as watching "%size of online players% players on {@server}.minehut.gg"
  49. set {lastmessage::bot} to false
  50. set topic of channel with id "{@irc}" to "Ingame -> Discord & back. %size of online players%/20 online" with "{@botname}"
  51.  
  52. on join:
  53. create embed:
  54. set the color of the embed to Green
  55. set the thumbnail of embed to "https://cravatar.eu/head/%player%/128.png"
  56. set the title of the embed to "%player% has joined the game."
  57. set the author info of the embed to author named "{@server}.minehut.gg" with no url
  58. send last created embed to channel with id "{@irc}" with "{@botname}"
  59. set {lastmessage::bot} to false
  60. wait 1 tick
  61. mark "{@botname}" as watching "%size of online players% players on {@server}.minehut.gg"
  62. set topic of channel with id "{@irc}" to "Ingame -> Discord & back. %size of online players%/20 online" with "{@botname}"
  63.  
  64. on death of player:
  65. if attacker is set:
  66. create embed:
  67. set the author info of the embed to author named "%victim% has been killed by %attacker%" with no url and icon "https://cravatar.eu/head/%player%/128.png"
  68. set the color of the embed to Red
  69. send last created embed to channel with id "{@irc}" with "{@botname}"
  70. else:
  71. create embed:
  72. set the author info of the embed to author named "%victim% has been killed by %damage cause%" with no url and icon "https://cravatar.eu/head/%player%/128.png"
  73. set the color of the embed to Red
  74. send last created embed to channel with id "{@irc}" with "{@botname}"
  75. set {lastmessage::bot} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement