Skip to content

Commit

Permalink
log xmpp message to console
Browse files Browse the repository at this point in the history
  • Loading branch information
tnfAngel committed Jul 24, 2023
1 parent 87cca41 commit 3479651
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xmpp/XMPP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ class XMPP extends Base {
});

this.connection!.on('message', async (m) => {

Check failure on line 265 in src/xmpp/XMPP.ts

View workflow job for this annotation

GitHub Actions / Test Code (Node 16)

Block must not be padded by blank lines.

console.log(m)

Check warning on line 267 in src/xmpp/XMPP.ts

View workflow job for this annotation

GitHub Actions / Test Code (Node 16)

Unexpected console statement.

Check failure on line 267 in src/xmpp/XMPP.ts

View workflow job for this annotation

GitHub Actions / Test Code (Node 16)

Missing semicolon.

Check failure on line 268 in src/xmpp/XMPP.ts

View workflow job for this annotation

GitHub Actions / Test Code (Node 16)

Trailing spaces not allowed.
if (m.type && m.type !== 'normal') return;
if (!m.body) return;
if (m.from !== '[email protected]') return;
Expand Down

0 comments on commit 3479651

Please sign in to comment.