@friendlyrobot/discord-pi-agent 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -972,13 +972,14 @@ async function removeWorkingReaction(message) {
|
|
|
972
972
|
}
|
|
973
973
|
var TYPING_INTERVAL_MS = 9000;
|
|
974
974
|
var typingIntervals = new Map;
|
|
975
|
-
function sendTypingSafe(channel, channelKey) {
|
|
975
|
+
async function sendTypingSafe(channel, channelKey) {
|
|
976
976
|
logger5.info({ channelKey }, "[TYPING] calling sendTyping()");
|
|
977
|
-
|
|
977
|
+
try {
|
|
978
|
+
await channel.sendTyping();
|
|
978
979
|
logger5.info({ channelKey }, "[TYPING] sendTyping() OK");
|
|
979
|
-
}
|
|
980
|
+
} catch (error) {
|
|
980
981
|
logger5.warn({ channelKey, error }, "[TYPING] sendTyping() FAILED");
|
|
981
|
-
}
|
|
982
|
+
}
|
|
982
983
|
}
|
|
983
984
|
function startTypingForChannel(channel, channelKey) {
|
|
984
985
|
const existing = typingIntervals.get(channelKey);
|