$writeFile
$writeFile
will create a new file in the bot’s directory.
Usage
$writeFile[path;text;encoding?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
path | string | Where to create the file. | true |
text | string | What the content of the file should be. | true |
encoding | string | Text/File encoding. | false |
Example(s)
This will create a file called “testing.txt” with the content of “Hello!“:
1client.command({2 name: "writeFile",3 code: `4 $writeFile[./testing.txt;Hello!;utf8]5 `6});