Skip to content

Commit e0b91e1

Browse files
committed
fix(grzesiu): username
1 parent 54d09f7 commit e0b91e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/grzesiu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const grzesiu: Command = {
2222
args: 'optional',
2323
cooldown: COOLDOWN,
2424
async execute(msg, args) {
25-
const username = msg.member?.displayName || msg.author.username;
25+
const username = (msg.member?.displayName || msg.author.username).trim().split(/\s/)[0];
2626
const prompt = await generateGrzesiuPrompt(username, args.join(' '));
2727

2828
const response = await openai.createCompletion('text-davinci-001', {

0 commit comments

Comments
 (0)