Skip to content

Commit

Permalink
❌ Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienBounoir committed Mar 28, 2023
1 parent d5b080e commit 25b754d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const client = new tmi.Client({
client.on('message', (channel, tags, message, self) => {
if (self) return; // ignore les messages envoyés par le bot lui-même

console.log(`${tags.username}: ${message}`)

channel = channel.replace("#", "")
if (filteredBot.includes(tags.username) || (tags.username == channel)) return; // ignore les messages envoyés par les bots filtrés
fs.appendFileSync(`./tchat/${channel}.txt`, `${message}\n`); // enregistrement du message dans un fichier
Expand Down

0 comments on commit 25b754d

Please sign in to comment.