v5.0.0
$readFile
Returns the contents of the provided file
This function simply returns the contents of the provided file.
Here is the usage:
1
$readFile[(file location)]
2
//This will send the contents of provided file in the channel.
Copied!
Now lets get contents of a file.
1
bot.command({
2
name: "read",
3
code: `
4
$readFile[config.json]
5
//This will send config.json contents in the channel.
6
`
7
})
Copied!
Now lets get the contents of a file in directory.
1
bot.command({
2
name: "read",
3
code: `
4
$readFile[config/text/data.json]
5
//This will send data.json contents in the channel.
6
`
7
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub