Skip to content

Commit

Permalink
fix: channel info padding, new discord icons (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
d0ctr authored Apr 15, 2024
2 parents 232f8c7 + 2645e95 commit b290d01
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 27 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.89.0",
"version": "2.89.1",
"description": "Discord bot for bilderberg club",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion telegram/channel-subscriber.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class DiscordNotification {
}

notification_data.members.forEach((member) => {
text += `\n${member.member_name || member.user_name}`
text += `\n${wideSpace}${member.member_name || member.user_name}`
+ (this.transformStatus(member) ? `${wideSpace}${this.transformStatus(member)}` : '')
+ (member.activity ? `${wideSpace}— <i>${member.activity}</i>` : '');
});
Expand Down
48 changes: 25 additions & 23 deletions utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,28 +103,30 @@ exports.convertMD2HTML = (text) => {
};

exports.icons = {
'discord' : '<tg-emoji emoji-id="5190555740577746802">☎️</tg-emoji>',
'sound_on' : '<tg-emoji emoji-id="5190573203914771019">🎧</tg-emoji>',
'sound_off' : '<tg-emoji emoji-id="5192789553068395493">🔕</tg-emoji>',
'mic_on' : '<tg-emoji emoji-id="5193192064518474546">🎤</tg-emoji>',
'mic_off' : '<tg-emoji emoji-id="5190522484645971930">🔇</tg-emoji>',
'activity' : '<tg-emoji emoji-id="5190590349424217698">🚀</tg-emoji>',
'live' : '<tg-emoji emoji-id="5190704475295205942">🔴</tg-emoji>',
'share_screen' : '<tg-emoji emoji-id="5192980683408033875">📺</tg-emoji>',
'video_on' : '<tg-emoji emoji-id="5190682042681018715">🎥</tg-emoji>',
'voice_channel' : '<tg-emoji emoji-id="5192801849559762029">🔈</tg-emoji>',
'announcements' : '<tg-emoji emoji-id="5190777683012765089">📣</tg-emoji>',
'checkbox' : '<tg-emoji emoji-id="5192904237285132899">🔳</tg-emoji>',
'checkbox_checked' : '<tg-emoji emoji-id="5193020678143494129">☑️</tg-emoji>',
'boost' : '<tg-emoji emoji-id="5190845066754671008">⚡️</tg-emoji>',
'event' : '<tg-emoji emoji-id="5193183551893292832">🗓</tg-emoji>',
'forum_channel' : '<tg-emoji emoji-id="5190455049364458822">🏛</tg-emoji>',
'notifications' : '<tg-emoji emoji-id="5193028125616784390">🔔</tg-emoji>',
'notifications_off': '<tg-emoji emoji-id="5193089685383039049">🔕</tg-emoji>',
'rules' : '<tg-emoji emoji-id="5192873420894782452">📕</tg-emoji>',
'settings' : '<tg-emoji emoji-id="5190508586131803488">⚙️</tg-emoji>',
'stage_channel' : '<tg-emoji emoji-id="5192839361804126766">🎤</tg-emoji>',
'text_channel' : '<tg-emoji emoji-id="5190816367783201595">📝</tg-emoji>',
'discord' : '<tg-emoji emoji-id="5253551254268822788">☎️</tg-emoji>',
'sound_on' : '<tg-emoji emoji-id="5253715880365278849">🎧</tg-emoji>',
'sound_off' : '<tg-emoji emoji-id="5253991574316008987">🔕</tg-emoji>',
'mic_on' : '<tg-emoji emoji-id="5253634185792340698">🎤</tg-emoji>',
'mic_off' : '<tg-emoji emoji-id="5253807083995810190">🔇</tg-emoji>',
'activity' : '<tg-emoji emoji-id="5253645159433783493">🚀</tg-emoji>',
'live' : '<tg-emoji emoji-id="5253960556062196348">🔴</tg-emoji>',
'share_screen' : '<tg-emoji emoji-id="5253810764782783059">📺</tg-emoji>',
'video_on' : '<tg-emoji emoji-id="5253543931349583986">🎥</tg-emoji>',
'voice_channel' : '<tg-emoji emoji-id="5253930581485439136">🔈</tg-emoji>',
'announcements' : '<tg-emoji emoji-id="5253756914482825143">📣</tg-emoji>',
'checkbox' : '<tg-emoji emoji-id="5253813573691394742">🔳</tg-emoji>',
'checkbox_checked' : '<tg-emoji emoji-id="5253662893353748779">☑️</tg-emoji>',
'boost' : '<tg-emoji emoji-id="5253904369300031313">⚡️</tg-emoji>',
'event' : '<tg-emoji emoji-id="5253584110768637850">🗓</tg-emoji>',
'forum_channel' : '<tg-emoji emoji-id="5253869751863626107">🏛</tg-emoji>',
'notifications' : '<tg-emoji emoji-id="5253865663054761637">🔔</tg-emoji>',
'notifications_off': '<tg-emoji emoji-id="5253558001662444808">🔕</tg-emoji>',
'rules' : '<tg-emoji emoji-id="5253803995914323587">📕</tg-emoji>',
'settings' : '<tg-emoji emoji-id="5253847121680942581">⚙️</tg-emoji>',
'stage_channel' : '<tg-emoji emoji-id="5253994817016318216">🎤</tg-emoji>',
'text_channel' : '<tg-emoji emoji-id="5253959516680113643">📝</tg-emoji>',
'folder' : '<tg-emoji emoji-id="5253664576980929234">📂</tg-emoji>',
'lock' : '<tg-emoji emoji-id="5253456387031189167">🔒</tg-emoji>',
};

if (ENV === 'dev') {
Expand All @@ -133,4 +135,4 @@ if (ENV === 'dev') {
}
}

exports.wideSpace = ' ';
exports.wideSpace = ' ';

0 comments on commit b290d01

Please sign in to comment.