diff --git a/controller.js b/controller.js index 7d1029b..b77855c 100644 --- a/controller.js +++ b/controller.js @@ -185,7 +185,7 @@ class ControllerPlugin extends BaseControllerPlugin { if (result && result.action) { await this.sendMessage(request, `**\`${nrc_username}\`**: ${result.passage}`); - this.instance.sendTo({ instanceId: this.instance.id }, new ChatEvent(this.instance.name, `[color=255,255,255]\`${nrc_username}\`: ${result}[/color]`)); + this.controller.sendTo({ instanceId: this.instance.id }, new ChatEvent(this.controller.name, `[color=255,255,255]\`${nrc_username}\`: ${result}[/color]`)); } } }