Functionalities
Other
$textSplit
Splits the text in the 1st field with a separator in the 2nd field.

FUNCTION USAGE

  • $textSplit[index;separator]

Properties:

index - Text data in the 1st field should be separated by the separator used in the 2nd field. separator - The separator to separate each index in the 1st field with.
$textSplit[some&text&ok;&] - splits the text with '&'.
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
Properties: