Advertisement
IamnotJamesBG

Curse Filter (REGEX FLAGS SUPPORT)

Apr 25th, 2025 (edited)
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. $c[API made by iamnotjamesbg]
  2. $c[I'm back again from my TTS API code!!! :)]
  3. $c[Curse check!]
  4. $c[Available parameters]
  5. $c[query, bot_token, filter (regex flags support), curse]
  6. $c[Yes, filter with regex flags support]
  7. $c[You can also add your own curse words using the curse parameter! (no limits)]
  8. $c[Perfect for any automod that uses $alwaysReply!]
  9. $c[No API Key needed!]
  10. $c[Any improvements or remodifying is welcome!]
  11. $c[Automods are welcome to use the API! (but with the responsible not to abuse the API)]
  12.  
  13. $c[======CODE======]
  14. Trigger: (prefix)cursecheck
  15. BDScript 2
  16. Code:
  17. $nomention
  18. $onlyIf[$message!=;Please provide code to check.]
  19. $onlyIf[$httpStatus!=200;⚠️ Something went wrong (Code: $httpStatus)]
  20.  
  21. $httpGet[http://46.202.82.164:1058/api/curses?query=$url[encode;$message]&bot_token=$getVar[TOKEN]&curse=idiot]
  22. $jsonParse[$httpResult]
  23.  
  24. $title[Curse Check Result]
  25. $description[
  26. **Original:** `$json[original]`
  27. **Curse(s) Found:** `$replaceText[$json[curses_list];[\];none;-1]`
  28. ]
  29. $color[ff0000]
  30. $c[======END OF CODE======]
  31.  
  32. $c[⚠️ AS ALWAYS, DO NOT ABUSE THE API, AS IT AFFECTS ALL THE USERS USING IT! (USE RESPONSIBLY)]
Tags: BDFD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement