Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- join voice channel of event-member
- purge {LastEmbeds::*} with event-bot
- set {_resulturl} to url of {resultados::5}
- replace all "https://www.youtube.com/watch?v=" with "" in {_resulturl}
- set {_talresultdur} to duration of {resultados::5}
- set {_totalresultdur} to ("%{_talresultdur}%" parsed as text)
- replace all "minute" with "minuto" in {_totalresultdur}
- replace all "hour" with "hora" in {_totalresultdur}
- replace all "second" with "segundo" in {_totalresultdur}
- replace all "and" with "y" in {_totalresultdur}
- replace all "minutes" with "minutos" in {_totalresultdur}
- replace all "hours" with "horas" in {_totalresultdur}
- replace all "seconds" with "segundos" in {_totalresultdur}
- set {_totalresult} to "https://i.ytimg.com/vi/%{_resulturl}%/maxresdefault.jpg"
- create embed:
- set the description of embed to "** **"
- set the author info of the embed to author named "PixelPC BOT" with no url and icon "https://i.imgur.com/3EePBZ7.png"
- set the colour of the embed to Cyan
- add split field named "%emote ""PixelMC"" from guild with id ""545295982754004995""% ▶ Now playing %{resultados::5}%" with value "Duracion: %{_totalresultdur}% | Autores: %authors of {resultados::5}%" to embed
- add split field named "" with value "**%nl%**" to embed
- set the footer of embed to footer with text "play.pixelmc.ga" and icon "https://i.imgur.com/3EePBZ7.png"
- set the timestamp of embed to now
- set the image of embed to "%{_totalresult}%"
- send the last created embed to event-channel with event-bot
- play {resultados::5}
- delete {LastEmbeds::*}
- delete {LatestAutorEmbed}
- delete {resultados::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement