Skip to content

Commit

Permalink
fix(network): ignore if .sendTyping fails
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-737 committed May 22, 2024
1 parent 272ae06 commit 20c40ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ jobs:
mv logs/ ~/console-logs/interchat-logs-$(date +"%Y-%m-%d_%H-%M-%S")
- name: Stop and delete old containers (if any)
run: docker ps -a | grep 'interchat' | awk '{print $1}' | xargs docker rm

continue-on-error: true
run: |
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
- name: Run image
run: docker run -d --env-file ~/important/interchat-env ghcr.io/discord-interchat/interchat

Expand Down
2 changes: 1 addition & 1 deletion src/managers/EventManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export default abstract class EventManager {
const hub = await db.hubs.findFirst({ where: { id: connection?.hubId } });
if (!hub) return;

message.channel.sendTyping();
message.channel.sendTyping().catch(() => null);

const settings = new HubSettingsBitField(hub.settings);
const hubConnections = connectionCache.filter(
Expand Down

0 comments on commit 20c40ce

Please sign in to comment.