send text event on error
This commit is contained in:
parent
3abdc8b6c1
commit
f36f3372c7
3 changed files with 1 additions and 60 deletions
45
.vscode/launch.json
vendored
45
.vscode/launch.json
vendored
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
14
.vscode/tasks.json
vendored
14
.vscode/tasks.json
vendored
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "rm-socket",
|
||||
"type": "shell",
|
||||
"presentation": {
|
||||
"reveal": "silent",
|
||||
"close": true
|
||||
},
|
||||
"command": "rm socket || true"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -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");
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue