Functionalities
Other
$splitText
Returns an index of splitted text from a $textSplit function.

FUNCTION USAGE

  • $splitText[index]

Property:

index - The position of a splitted text. Must be a number.

Example:

1
bot.Command({
2
name: "pornhub",
3
code: `
4
$title[Editable/Working Pornhub Meme]
5
$image[https://api.alexflipnote.dev/pornhub?text=$replaceText[$splitText[1]; ;+]&text2=$replaceText[$splitText[2]; ;+]]
6
7
$textSplit[$message[];/]
8
$onlyIf[$guildID!=;]
9
$onlyIf[$argsLength<=3;Only use 2 words with the \`/\` as the divider]
10
$onlyIf[$message[2]==/;Must contain a \`/\` between the two words]
11
$onlyIfMessageContains[$message[];/;x Incorrect usage, use: $getServerVar[prefix]pornhub Text1 / Text2]
12
`})
Copied!
Last modified 4mo ago
Copy link
Contents
Property: