Skip to content

Commit

Permalink
Merge pull request #115 from d0ctr/test
Browse files Browse the repository at this point in the history
Fix undefined activity
  • Loading branch information
d0ctr committed Jul 24, 2023
2 parents de66d9c + 3ab3bcc commit 7440fbf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bilderberg_butler",
"version": "2.50.0",
"version": "2.51.0",
"description": "Discord bot for bilderberg club",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions telegram/presence-subscriber.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class PresenceNotification {

getNotificationText() {
let text = 'Активность';
for (const [{}, { member_name, activity, call_me_by = null }] of this.presence_collection.entries()) {
text += `\n${call_me_by || member_name} -- ${activity}`;
for (const [{}, { member_name, activity, call_me_by = null }] of this.presence_collection.entries()) {
if (activity) text += `\n${call_me_by || member_name} -- ${activity}`;
}
return text;
}
Expand Down

0 comments on commit 7440fbf

Please sign in to comment.