$writeFile
$writeFile
will create a new file in the bot’s directory.
Usage
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!“: