@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.
Files changed (2) hide show
  1. package/dist/index.js +5 -4
  2. 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
- channel.sendTyping().then(() => {
977
+ try {
978
+ await channel.sendTyping();
978
979
  logger5.info({ channelKey }, "[TYPING] sendTyping() OK");
979
- }).catch((error) => {
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@friendlyrobot/discord-pi-agent",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Reusable Discord gateway bridge for persistent pi agent sessions",
5
5
  "license": "MIT",
6
6
  "type": "module",