We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54d09f7 commit e0b91e1Copy full SHA for e0b91e1
src/commands/grzesiu.ts
@@ -22,7 +22,7 @@ const grzesiu: Command = {
22
args: 'optional',
23
cooldown: COOLDOWN,
24
async execute(msg, args) {
25
- const username = msg.member?.displayName || msg.author.username;
+ const username = (msg.member?.displayName || msg.author.username).trim().split(/\s/)[0];
26
const prompt = await generateGrzesiuPrompt(username, args.join(' '));
27
28
const response = await openai.createCompletion('text-davinci-001', {
0 commit comments