mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-18 13:23:33 +08:00
The /buddy command was completely disabled by bun:bundle feature('BUDDY')
flag which evaluates to false at runtime. Removed all feature('BUDDY')
checks across the codebase to register the command, and added keyboard
event handling (q/Enter to dismiss) which was missing from the UI.
12 lines
282 B
TypeScript
12 lines
282 B
TypeScript
import type { Command } from '../../commands.js'
|
|
|
|
const buddyCommand = {
|
|
type: 'local-jsx',
|
|
name: 'buddy',
|
|
description: 'Meet your companion',
|
|
argumentHint: '[hatch|pet|mute|unmute|info]',
|
|
load: () => import('./buddy.js'),
|
|
} satisfies Command
|
|
|
|
export default buddyCommand
|