Advertisement
Sqmmer

Untitled

Mar 21st, 2021
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. options:
  2. token: ODIyOTIzNDk0NTkyMzQ4MTcw.YFZVOg.6bcUVHeSShb2oDGoI2IIV1DXym0
  3. bot: ColdBot
  4. prefix: .
  5. staffRole: Staff
  6. status: do not disturb
  7. statusAktivitet: watching
  8. statusBesked: Seneste køb på Cold
  9. Kanal: 822925136646111322
  10. ticketKategori: Test
  11. VerifyRole: 822439693915783200
  12. mcChatDiscord: true
  13. mcChatDiscordID: 822925136646111322
  14. buyChatId: 823287960946343936
  15.  
  16. variables:
  17. {emeralder::*} = 0
  18.  
  19.  
  20. on load:
  21. login to "{@token}" with the name "{@bot}"
  22. set status of "{@bot}" to {@status}
  23. mark "{@bot}" as {@statusAktivitet} "{@statusBesked}"
  24. if {Tickets} isn't set:
  25. set {Tickets} to 0
  26.  
  27. on unload:
  28. set status of "{@bot}" to do not disturb
  29.  
  30.  
  31. on chat:
  32. if "{@mcChatDiscord}" = "true":
  33. set {_tid} to 2nd element of split "%now%" at " "
  34. send "(%{_tid}%) **%player%** » %message%" to channel with id "{@mcChatDiscordID}" with "{@bot}"
  35.  
  36. guild message receive seen by "{@bot}":
  37. if discord id of event-channel is "{@Kanal}":
  38. wait 5 seconds
  39. delete event-message
  40.  
  41. function buyTing(p: player, a: number, k: text):
  42. create embed:
  43. set the title of embed to title with text "BUYCRAFT"
  44. set the color of the embed to Aqua
  45. set {_mb} to a new message builder
  46. append line "**Spiller Info**" to {_mb}
  47. append line "Navn: %{_p}%" to {_mb}
  48. append line "Købt: %{_k}%" to {_mb}
  49. append line "Pris: %{_a}% Emeralder" to {_mb}
  50. append line "" to {_mb}
  51. append line "**Server Info**" to {_mb}
  52. append line "Navn: Cold" to {_mb}
  53. append line "Online: %size of all players%" to {_mb}
  54. append line "Tjent: %{emeralder::*}%" to {_mb}
  55. append line "" to {_mb}
  56. append line "**/SERVER COLD**" to {_mb}
  57. set the description of embed to "%{_mb}%"
  58. set the timestamp of the embed to now
  59. send last created embed to channel with id "{@buyChatId}" with "{@bot}"
  60.  
  61. command /købting [<offline player>] [<integer>] [<text>]:
  62. permission: admin
  63. trigger:
  64. buyTing(arg-1, arg-2, "%arg-3%")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement