$createFile
Attaches a txt file to the bot's response.
Usage
$createFile[text;name]
This function has two params.
Param
Description
Type
Required
text
The text that the file should contain.
String
Yes
name
The file's name.
string
Yes
Example
bot.commands.add({
type: "basicCommand",
name: "example",
code: `$createfile[Hello World!;text]`
})

Last updated
Was this helpful?