fix lastUser not being set
This commit is contained in:
parent
eb242e85bb
commit
b89765b5e9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue