Skip to content

Commit

Permalink
Update nbnhhsh.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rikumi authored Dec 23, 2024
1 parent 66ebad7 commit 7fd1dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/nbnhhsh.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { GeneralMessage } from '../clients/base';

export const handleSlashCommand = async (message: GeneralMessage) => {
const text = message.text.replace(/^\S+/, '');
const text = message.messageReplied?.text ?? message.text.replace(/^\S+/, '');
const res = await fetch('https://lab.magiconch.com/api/nbnhhsh/guess', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
Expand Down

0 comments on commit 7fd1dbc

Please sign in to comment.