Advertisement
IamnotJamesBG

Ship Command (Ship Random User!)

Apr 30th, 2025 (edited)
713
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 2.23 KB | None | 0 0
  1. $c[Code by jaya.l]
  2. $c[Modified by iamnotjamesbg]
  3. $c[Added an option to do "random" and ship with a random person on your server]
  4. $c[API made by jaya.l]
  5. $c[Works like (prefix)ship random random]
  6. $c[Previews (FIXED)]
  7. $c[https://file.garden/Zx4Z7q1Z7kthgASJ/Preview_1.jpg]
  8. $c[https://file.garden/Zx4Z7q1Z7kthgASJ/Preview_2.jpg]
  9. $c[https://file.garden/Zx4Z7q1Z7kthgASJ/Preview_3.jpg]
  10.  
  11. $c[======CODE======]
  12. Trigger: (prefix)ship
  13. BDScript 2
  14. Code:
  15. $nomention
  16. $suppressErrors
  17. $var[percentage;$random[1;101]]
  18. $var[perfect;100]
  19. $var[user1;$mentioned[1]]
  20. $var[user2;$mentioned[2]]
  21. $var[title;Ship Meter]
  22.  
  23. $if[$message==random]
  24.   $var[user1;$authorID]
  25.   $var[user2;$randomUserID]
  26. $elseif[$message==random random]
  27.   $var[user1;$randomUserID]
  28.   $var[user2;$userID[$randomUser]]
  29. $elseif[$and[$message[1]==random;$mentioned[1]!=]]
  30.   $var[user1;$randomUserID]
  31.   $var[user2;$mentioned[1]]
  32. $elseif[$and[$mentioned[1]!=;$message[2]==random]]
  33.   $var[user1;$mentioned[1]]
  34.   $var[user2;$randomUserID]
  35. $endif
  36.  
  37. $if[$var[user1]==$var[user2]]
  38.   $var[percentage;100]
  39. $endif
  40.  
  41. $if[$var[user1]==]
  42.   - You need to mention at least one user or use `random`!
  43.   $stop
  44. $endif
  45.  
  46. $try        
  47.   $cooldown[5s;]        
  48. $catch        
  49.   $var[cooldown;$sendMessage[| **$username** You are on cooldown! Try again **<t:$sum[$getTimestamp;$getCooldown[normal]]:R>**;yes]]
  50.   $replyIn[$getCooldown[normal]s]
  51.   $replyIn[1s]
  52.   $deleteMessage[$channelID;$var[cooldown]]        
  53.   $stop        
  54. $endtry
  55.  
  56. $title[Compatibility Meter]
  57. $description[Will this couple work out?]
  58.  
  59. $if[$var[user2]==]
  60.   $addField[Shipped!;$nickname[$var[user1]] + $nickname[$var[user1]]]
  61.   $image[https://jayaapi.vercel.app/freeship?user1=$userAvatar[$var[user1]]&user2=$userAvatar[$var[user1]]&title=$url[encode;$var[title]]&porcentagem=$var[perfect]]
  62. $else
  63.   $addField[Shipped!;$nickname[$var[user1]] + $nickname[$var[user2]]]
  64.   $image[https://jayaapi.vercel.app/freeship?user1=$userAvatar[$var[user1]]&user2=$userAvatar[$var[user2]]&title=$url[encode;$var[title]]&porcentagem=$var[percentage]]
  65. $endif
  66. $color[FF0000]
  67. $c[=======END OF CODE======]
  68.  
  69. $c[Additional changes]
  70. $c[If pairing is the author, automically rate it 100%, you can remove it if you want randomized rating for author]
Tags: BDFD Ship
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement