Advertisement
IamnotJamesBG

Simple TTS Command

Apr 20th, 2025
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 1.36 KB | None | 0 0
  1. $c[This is my first very own made API, kinda buggy, but it works!]
  2. $c[VARS NEEDED
  3. TOKEN=YOUR TOKEN HERE]
  4. $c[If the API is down, just dm me on discord
  5. $c[Username: iamnotjamesbg]
  6. $c[This doesn't need an API key, I gave it to you for free!]
  7. $c[API is still new, expect more endpoints soon™]
  8.  
  9. $c[=====CODE======]
  10. $nomention
  11. $botTyping
  12. $suppressErrors[🚫 Something went wrong consider the following:
  13. - API is down or lagging
  14. - Your response shouldn't have any new lines like for example
  15.  - "Hi hello, how are you?
  16.  
  17. hello, test"
  18. - API failed to process the response
  19. - Server-side fault
  20. -# Contact the API dev if this kept happening]
  21. $argsCheck[>1;🚫 Please say atleast something]
  22. $cooldown[5s;⏰ Whoops! You must wait for atleast **%time%** to generate another one again!]
  23. $onlyIf[$charCount[$message]<=500;🚫 You've reached the maximum 500 character limit]
  24. $var[ttsgen;$sendMessage[Generating TTS...;yes]]
  25. $replyIn[1s]
  26.  
  27.  
  28.  
  29. $editMessage[$channelID;$var[ttsgen];Generated!
  30. $httpGet[http://67.220.85.146:6181/api/tts?message=$replaceText[$message; ;+;-1]&channel=$channelID&bot_token=$getVar[TOKEN]&lang=en-uk]]
  31. $c[=====END OF CODE======]
  32.  
  33. $c[=====ENDING MESSAGE======]
  34. $c[You can give credit when reposting or modifying something]
  35. $c[Ask for permission first before reposting]
  36. $c[⚠️DO NOT ABUSE THE API CUZ IT AFFECTS ALL THE USERS USING IT⚠️]
Tags: BDFD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement