fix lastUser not being set

This commit is contained in:
ShuriZma 2024-03-30 19:25:01 +01:00
parent eb242e85bb
commit b89765b5e9
Signed by: ShuriZma
GPG Key ID: 8D289758EE9B8074
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ export class Bot {
}
this.counter++;
this.lastUser = msg.author.id;
msg.content = msg.content.charAt(0).toUpperCase() + msg.content.slice(1);
this.db.run(
'INSERT OR REPLACE INTO library (word, amount) VALUES (?, COALESCE((SELECT amount FROM library WHERE word = ?), 0) + 1)',
@ -169,7 +169,7 @@ export class Bot {
});
const embed = new EmbedBuilder()
.setTitle('Top 10 most used words.')
.setTitle('Top 9 most used words.')
.setDescription('This is the Library with the most used words and their amount.\u200B⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤⏤')
.setColor(0xffe600)
.setFields(fields);