Skip to content

Commit

Permalink
handle usernames with periods
Browse files Browse the repository at this point in the history
  • Loading branch information
rungulus committed Apr 22, 2024
1 parent bd56afc commit 37dbd86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ class Bucket extends EventEmitter {
this.botState = `Activated by ${message.author.tag}`;
console.log(`Got Ping! It's from ${message.author.tag}`);

const sender = message.author.username;
const sender = message.author.username.replace(/[^a-zA-Z0-9_-]/g, '');;



this.originalMessage = message.content.replace(/<@!\d+>/g, '').replace(`<@${this.client.user.id}>`, '').trim(); //dont send the ping to the ai
Expand Down

0 comments on commit 37dbd86

Please sign in to comment.