commit
This commit is contained in:
parent
4b01a10dab
commit
75466659e7
4 changed files with 115 additions and 77 deletions
14
botTools.js
Normal file
14
botTools.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
const fs = require('fs');
|
||||
|
||||
function addToLogs(message) {
|
||||
//
|
||||
//Add a message to the logs
|
||||
//
|
||||
fs.appendFile('./logs/logs.txt', message + "\n", err => {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = { addToLogs };
|
Loading…
Add table
Add a link
Reference in a new issue