Advertisement
IamnotJamesBG

Ship Command (Ship Random User!)

Apr 30th, 2025
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 2.67 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]
  7. $c[https://cdn.discordapp.com/attachments/1365393985174114314/1367307485978820699/Screenshot_2025_0501_090746.jpg?ex=68141bd4&is=6812ca54&hm=000848018c31550f4273024837df435d05e8d79a322f189ee40a7b5cd2ec3171&]
  8. $c[https://cdn.discordapp.com/attachments/1365393985174114314/1367307617357135972/Screenshot_2025_0501_090827.jpg?ex=68141bf3&is=6812ca73&hm=54446c1ea6f0466c3460bf275af26b1336713118d2595a19e341d3aeea237726&]
  9. $c[https://cdn.discordapp.com/attachments/1365393985174114314/1367307712681213992/Screenshot_2025_0501_090727.jpg?ex=68141c0a&is=6812ca8a&hm=d8258486a33a6260b67f4da3627aa3696f744cceb689d5a551c6ae283b492fac&]
  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