fixed bug

This commit is contained in:
array-in-a-matrix 2022-08-18 01:54:20 -04:00
parent 0ee11b2d74
commit ac80edae2d
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ client.on("room.message", (roomId, event) => {
if (userMessage[0].startsWith(config.prefix)) {
userMessage[0] = userMessage[0].replace(config.prefix, '').toLowerCase();
} else {
fs.appendFile('training-matrix.txt', userMessage + "\n", function (err) {
fs.appendFile('training-matrix.txt', userMessage.join(' ') + "\n", function (err) {
if (err) throw err;
});
};