$createFile

Attaches a txt file to the bot's response.

Usage

$createFile[text;name]

This function has two params.

ParamDescriptionTypeRequired

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