Compare commits

..

No commits in common. '5b703187ce5e8adbf5fa71ba26c0b8db11cb3957' and '2eebf996c58e5729d8750b9661005059d7e688ef' have entirely different histories.

  1. 1
      src/bot.ts
  2. 4
      src/commands/list.ts

@ -33,7 +33,6 @@ export class UEMEloBot extends Client {
} }
parsePlayersFromFile(){ parsePlayersFromFile(){
// TODO get players from sql instead
if (fs.existsSync(this.fileName)){ if (fs.existsSync(this.fileName)){
let fileContent = fs.readFileSync(this.fileName).toString(); let fileContent = fs.readFileSync(this.fileName).toString();
try { try {

@ -24,8 +24,6 @@ class List extends Command {
return; return;
} }
await interaction.deferReply();
const maxNameLength = players.reduce((max: number, next: Player) => Math.max(max, next.toString().length), 0); const maxNameLength = players.reduce((max: number, next: Player) => Math.max(max, next.toString().length), 0);
const maxProgressDigits = players.reduce((max, next) => Math.max(max, Math.abs(next.getProgress()).toString().length), 0); const maxProgressDigits = players.reduce((max, next) => Math.max(max, Math.abs(next.getProgress()).toString().length), 0);
@ -60,7 +58,7 @@ class List extends Command {
]) ])
.setThumbnail(iconURL); .setThumbnail(iconURL);
await interaction.editReply({embeds: [embed]}); await interaction.reply({embeds: [embed]});
} }
} }

Loading…
Cancel
Save