Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rikumi authored Oct 24, 2024
1 parent f62b174 commit 21e6b07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/nbnhhsh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ export const handleSlashCommand = async (message: GeneralMessage) => {
method: 'POST',
body: JSON.stringify({ text }),
});
return (await res.json()).map(({ name, trans }) => `${name}: ${trans.join(' ')}`).join('\n') || 'bn';
return await res.text();
// return (await res.json()).map(({ name, trans }) => `${name}: ${trans.join(' ')}`).join('\n') || 'bn';
};

0 comments on commit 21e6b07

Please sign in to comment.