Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $c[Code by jaya.l]
- $c[Modified by iamnotjamesbg]
- $c[Added an option to do "random" and ship with a random person on your server]
- $c[API made by jaya.l]
- $c[Works like (prefix)ship random random]
- $c[Previews (FIXED)]
- $c[https://file.garden/Zx4Z7q1Z7kthgASJ/Preview_1.jpg]
- $c[https://file.garden/Zx4Z7q1Z7kthgASJ/Preview_2.jpg]
- $c[https://file.garden/Zx4Z7q1Z7kthgASJ/Preview_3.jpg]
- $c[======CODE======]
- Trigger: (prefix)ship
- BDScript 2
- Code:
- $nomention
- $suppressErrors
- $var[percentage;$random[1;101]]
- $var[perfect;100]
- $var[user1;$mentioned[1]]
- $var[user2;$mentioned[2]]
- $var[title;Ship Meter]
- $if[$message==random]
- $var[user1;$authorID]
- $var[user2;$randomUserID]
- $elseif[$message==random random]
- $var[user1;$randomUserID]
- $var[user2;$userID[$randomUser]]
- $elseif[$and[$message[1]==random;$mentioned[1]!=]]
- $var[user1;$randomUserID]
- $var[user2;$mentioned[1]]
- $elseif[$and[$mentioned[1]!=;$message[2]==random]]
- $var[user1;$mentioned[1]]
- $var[user2;$randomUserID]
- $endif
- $if[$var[user1]==$var[user2]]
- $var[percentage;100]
- $endif
- $if[$var[user1]==]
- - You need to mention at least one user or use `random`!
- $stop
- $endif
- $try
- $cooldown[5s;]
- $catch
- $var[cooldown;$sendMessage[⏳ | **$username** You are on cooldown! Try again **<t:$sum[$getTimestamp;$getCooldown[normal]]:R>**;yes]]
- $replyIn[$getCooldown[normal]s]
- $replyIn[1s]
- $deleteMessage[$channelID;$var[cooldown]]
- $stop
- $endtry
- $title[Compatibility Meter]
- $description[Will this couple work out?]
- $if[$var[user2]==]
- $addField[Shipped!;$nickname[$var[user1]] + $nickname[$var[user1]]]
- $image[https://jayaapi.vercel.app/freeship?user1=$userAvatar[$var[user1]]&user2=$userAvatar[$var[user1]]&title=$url[encode;$var[title]]&porcentagem=$var[perfect]]
- $else
- $addField[Shipped!;$nickname[$var[user1]] + $nickname[$var[user2]]]
- $image[https://jayaapi.vercel.app/freeship?user1=$userAvatar[$var[user1]]&user2=$userAvatar[$var[user2]]&title=$url[encode;$var[title]]&porcentagem=$var[percentage]]
- $endif
- $color[FF0000]
- $c[=======END OF CODE======]
- $c[Additional changes]
- $c[If pairing is the author, automically rate it 100%, you can remove it if you want randomized rating for author]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement