Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $c[API made by iamnotjamesbg]
- $c[I'm back again from my TTS API code!!! :)]
- $c[Curse check!]
- $c[Available parameters]
- $c[query, bot_token, filter (regex flags support), curse]
- $c[Yes, filter with regex flags support]
- $c[You can also add your own curse words using the curse parameter! (no limits)]
- $c[Perfect for any automod that uses $alwaysReply!]
- $c[No API Key needed!]
- $c[Any improvements or remodifying is welcome!]
- $c[Automods are welcome to use the API! (but with the responsible not to abuse the API)]
- $c[======CODE======]
- Trigger: (prefix)cursecheck
- BDScript 2
- Code:
- $nomention
- $onlyIf[$message!=;Please provide code to check.]
- $onlyIf[$httpStatus!=200;⚠️ Something went wrong (Code: $httpStatus)]
- $httpGet[http://46.202.82.164:1058/api/curses?query=$url[encode;$message]&bot_token=$getVar[TOKEN]&curse=idiot]
- $jsonParse[$httpResult]
- $title[Curse Check Result]
- $description[
- **Original:** `$json[original]`
- **Curse(s) Found:** `$replaceText[$json[curses_list];[\];none;-1]`
- ]
- $color[ff0000]
- $c[======END OF CODE======]
- $c[⚠️ AS ALWAYS, DO NOT ABUSE THE API, AS IT AFFECTS ALL THE USERS USING IT! (USE RESPONSIBLY)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement