Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $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
- - Your response shouldn't have any new lines like for example
- - "Hi hello, how are you?
- hello, test"
- - 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]<=500;🚫 You've reached the maximum 500 character limit]
- $var[ttsgen;$sendMessage[Generating TTS...;yes]]
- $replyIn[1s]
- $editMessage[$channelID;$var[ttsgen];Generated!
- $httpGet[http://67.220.85.146:6181/api/tts?message=$replaceText[$message; ;+;-1]&channel=$channelID&bot_token=$getVar[TOKEN]&lang=en-uk]]
- $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