From f36f3372c75a8c5c422a8b3ba52efb663b7988fc Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sat, 28 Feb 2026 18:40:03 -0500 Subject: [PATCH] send text event on error --- .vscode/launch.json | 45 --------------------------------------------- .vscode/tasks.json | 14 -------------- bin/nexusbot.dart | 2 +- 3 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 .vscode/launch.json delete mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index a4cb667..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "nexusbot", - "preLaunchTask": "rm-socket", - "program": "bin/nexusbot.dart", - "args": [ - "--socket", - "./socket", - "--homeserver", - "https://matrix.federated.nexus", - "--name", - "nexusbot", - "--adminRoom", - "#admins:federated.nexus", - "--inviteTo", - "#community:federated.nexus", - "--successUri", - "https://federated.nexus/success", - "--failureUri", - "https://federated.nexus/failure", - "--botPasswordFile", - "secrets/botPassword.txt", - "--smtpPasswordFile", - "secrets/smtpPassword.txt", - "--adminName", - "grapevine", - "--email", - "henry@henryhiles.com", - "--emailAlias", - "info@federated.nexus", - "--mailDomain", - "mail.henryhiles.com", - "--mailName", - "Federated Nexus" - ], - "request": "launch", - "type": "dart" - } - ] -} diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index 724fc1c..0000000 --- a/.vscode/tasks.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "version": "2.0.0", - "tasks": [ - { - "label": "rm-socket", - "type": "shell", - "presentation": { - "reveal": "silent", - "close": true - }, - "command": "rm socket || true" - } - ] -} diff --git a/bin/nexusbot.dart b/bin/nexusbot.dart index 4f65ddb..913c944 100644 --- a/bin/nexusbot.dart +++ b/bin/nexusbot.dart @@ -127,7 +127,7 @@ If you have any issues, reply to this email.""", } } } catch (error, stackTrace) { - print("$error\n$stackTrace"); + await event.room.sendTextEvent("$error\n$stackTrace"); } });