Browse Source

Stop deleting messages during scoring

master
Abheek Dhawan 4 years ago
parent
commit
5abb2e3bf9
  1. 2
      index.js

2
index.js

@ -43,7 +43,7 @@ async function startScoring(message) {
scoreboard.channel.send(`Here's the score:\nTeam A: ${scoreA}\nTeam B: ${scoreB}`).catch(console.error); scoreboard.channel.send(`Here's the score:\nTeam A: ${scoreA}\nTeam B: ${scoreB}`).catch(console.error);
} else if (m.content === "$score finish") { } else if (m.content === "$score finish") {
//m.delete({ timeout: 1000 }).catch(console.error); //m.delete({ timeout: 1000 }).catch(console.error);
scoreboard.delete({ timeout: 1000 }); //scoreboard.delete({ timeout: 1000 });
m.channel.send(`**FINAL SCORE:**\nTeam A: ${scoreA}\nTeam B: ${scoreB}`).catch(console.error); m.channel.send(`**FINAL SCORE:**\nTeam A: ${scoreA}\nTeam B: ${scoreB}`).catch(console.error);
collector.stop(); collector.stop();
} }

Loading…
Cancel
Save