Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $c[VERSION 2.6 (Final Update)]
- $c[CHANGELOGS]
- $c[
- - Fixed tons of bugs during audio generation
- - Overall improved audio generation
- - New API link]
- $c[Comment from the maker (me)]
- $c[So this is the last api link change, and the final update for this, unless there's a big change, so for now, this will function, and will always be free to use, any improvements or modifications are welcome, so enjoy using this! :D]
- $c[This is my first very own made API, kinda buggy, but it works!]
- $c[VARS NEEDED
- TOKEN=YOUR TOKEN HERE]
- $c[If the API is down, just dm me on discord]
- $c[Username: iamnotjamesbg]
- $c[This doesn't need an API key, I gave it to you for free!]
- $c[API is still new, expect more endpoints soon™]
- $c[=====CODE======]
- $nomention
- $botTyping
- $suppressErrors[🚫 Something went wrong consider the following:
- - API is down or lagging
- - API failed to process the response
- - Server-side fault
- -# Contact the API dev if this kept happening]
- $argsCheck[>1;🚫 Please say atleast something]
- $cooldown[5s;⏰ Whoops! You must wait for atleast **%time%** to generate another one again!]
- $onlyIf[$charCount[$message]<=2000;🚫 You've reached the maximum 2000 character limit]
- $onlyIf[$httpStatus!=200;⚠️ Something went wrong, or you got ratelimited!]
- $var[ttsgen;$sendMessage[Generating TTS...;yes]]
- $httpGet[https://jmlite-tts-api-production.up.railway.app/api/tts?message=$url[encode;$message]&channel=$channelID&bot_token=$getVar[TOKEN]&lang=en-uk]
- $editMessage[$channelID;$var[ttsgen];Generated!
- $httpResult[0;fileUrl]]
- $c[=====END OF CODE======]
- $c[=====ENDING MESSAGE======]
- $c[You can give credit when reposting or modifying something]
- $c[Ask for permission first before reposting]
- $c[⚠️DO NOT ABUSE THE API CUZ IT AFFECTS ALL THE USERS USING IT⚠️]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement