feat: /cancel slash command to abort active agent runs (#422)
This commit is contained in:
@@ -254,7 +254,7 @@ Ask the bot owner to approve with:
|
||||
return;
|
||||
}
|
||||
if (this.onCommand) {
|
||||
if (command === 'status' || command === 'reset' || command === 'heartbeat' || command === 'model') {
|
||||
if (command === 'status' || command === 'reset' || command === 'heartbeat' || command === 'cancel' || command === 'model') {
|
||||
const result = await this.onCommand(command, message.channel.id, cmdArgs);
|
||||
if (result) {
|
||||
await message.channel.send(result);
|
||||
|
||||
Reference in New Issue
Block a user