Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- server: "servername"
- botname: "name"
- irc: 864209225748447232
- on load:
- create vixio bot:
- login to "ODY0MjA3MzM3MTE5MDIzMTE1.YOyFzQ.sE1TkOs6GUrCDxhpwxlg6Vjrt9k" with the name botname
- enable the guild members intent
- enable the guild bans intent
- enable the guild emojis intent
- enable the guild invites intent
- enable the guild voice states intent
- enable the guild presences intent
- enable the guild messages intent
- enable the guild message reactions intent
- enable the direct messages intent
- enable the direct message reactions intent
- enable the direct message typing intent
- on chat:
- replace all "`" in message with ""
- if {lastmessage::bot} is true:
- set {currentchat::bot} to "%{currentchat::bot}%%nl%%uncolored player's prefix% %uncolored player's name% » %message%"
- edit {msg} to show "```%{currentchat::bot}%```"
- else:
- send "```%uncolored player's prefix% %uncolored player's name% » %message%```" to channel with id "{@irc}" with {@botname} and store it in {msg}
- set {currentchat::bot} to "%uncolored player's prefix% %uncolored player's name% » %message%"
- set {lastmessage::bot} to true
- on guild message received:
- if "%event-channel%" contains "irc":
- set {lastmessage::bot} to false
- set {_d} to "&a%the discord nickname of event-member in event-guild%"
- set {_d} to "&b%{_d}%: &f%event-message%"
- replace all "%nl%" in {_d} with " "
- broadcast "&3(DISCORD) %colored {_d}%"
- on disconnect:
- create embed:
- set the thumbnail of embed to "https://cravatar.eu/head/%player%/128.png"
- set the title of the embed to "%player% has left the game."
- set the author info of the embed to author named "{@server}.minehut.gg" with no url
- set the color of the embed to Red
- send last created embed to channel with id "{@irc}" with "{@botname}"
- wait 1 tick
- mark "{@botname}" as watching "%size of online players% players on {@server}.minehut.gg"
- set {lastmessage::bot} to false
- set topic of channel with id "{@irc}" to "Ingame -> Discord & back. %size of online players%/20 online" with "{@botname}"
- on join:
- create embed:
- set the color of the embed to Green
- set the thumbnail of embed to "https://cravatar.eu/head/%player%/128.png"
- set the title of the embed to "%player% has joined the game."
- set the author info of the embed to author named "{@server}.minehut.gg" with no url
- send last created embed to channel with id "{@irc}" with "{@botname}"
- set {lastmessage::bot} to false
- wait 1 tick
- mark "{@botname}" as watching "%size of online players% players on {@server}.minehut.gg"
- set topic of channel with id "{@irc}" to "Ingame -> Discord & back. %size of online players%/20 online" with "{@botname}"
- on death of player:
- if attacker is set:
- create embed:
- 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"
- set the color of the embed to Red
- send last created embed to channel with id "{@irc}" with "{@botname}"
- else:
- create embed:
- 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"
- set the color of the embed to Red
- send last created embed to channel with id "{@irc}" with "{@botname}"
- set {lastmessage::bot} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement