1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-16 18:06:55 +00:00
* Added: Option to prevent Pinned Messages from being displayed. Closes #1470
* Removed: Setting to allow the Golden Kappa Train to appear. This wasn't working correctly, so nothing of value has been lost.
* Fixed: Blocking chat users by username worked inconsistently.
* Fixed: Hiding channels in the directory by title worked inconsistently. Closes #1473
* API Changed: The `chat:get-tab-commands` event now has a `channel` object with the ID and login of the current channel, as well as a reference to the relevant input component.
* API Added: The `chat` module now has `addTabCommandPrefix(prefix: string | string[])` and `removeTabCommandPrefix(prefix: string | string[])` methods. By default, tab-completion for chat commands only triggers with the `/` and `!` prefix for performance reasons. This can be used to add additional prefix characters.
This commit is contained in:
SirStendec 2024-03-19 16:36:44 -04:00
parent 8807e09ea3
commit 10d35468a9
6 changed files with 104 additions and 33 deletions

View file

@ -461,7 +461,7 @@ export default class ChatHook extends Module {
}
});
this.settings.add('chat.banners.kappa-train', {
/*this.settings.add('chat.banners.kappa-train', {
default: false,
ui: {
path: 'Chat > Appearance >> Community',
@ -469,6 +469,15 @@ export default class ChatHook extends Module {
description: '**Note**: This setting is currently theoretical and may not work, or may cause non-Kappa hype trains to appear. Due to the infrequent nature of hype trains, and especially the golden kappa hype train, it is very hard to test.',
component: 'setting-check-box'
}
});*/
this.settings.add('chat.banners.pinned-message', {
default: true,
ui: {
path: 'Chat > Appearance >> Community',
title: 'Allow Pinned Messages to be displayed in chat.',
component: 'setting-check-box'
}
});
this.settings.add('chat.banners.drops', {
@ -1042,6 +1051,7 @@ export default class ChatHook extends Module {
this.chat.context.on('changed:chat.banners.polls', this.cleanHighlights, this);
this.chat.context.on('changed:chat.banners.prediction', this.cleanHighlights, this);
this.chat.context.on('changed:chat.banners.drops', this.cleanHighlights, this);
this.chat.context.on('changed:chat.banners.pinned-message', this.cleanHighlights, this);
this.chat.context.on('changed:chat.disable-handling', this.updateDisableHandling, this);
@ -1722,6 +1732,7 @@ export default class ChatHook extends Module {
'hype_train': this.chat.context.get('chat.banners.hype-train'),
'prediction': this.chat.context.get('chat.banners.prediction'),
'poll': this.chat.context.get('chat.banners.polls'),
'pinned_chat': this.chat.context.get('chat.banners.pinned-message'),
'mw-drop-available': this.chat.context.get('chat.banners.drops')
};
@ -1736,8 +1747,8 @@ export default class ChatHook extends Module {
const type = entry.event.type;
if ( type && has(types, type) && ! types[type] ) {
// Attempt to allow Golden Kappa hype trains?
if ( type === 'hype_train' && entry.event.typeDetails === '0' && this.chat.context.get('chat.banners.kappa-train') )
continue;
//if ( type === 'hype_train' && entry.event.typeDetails === '0' && this.chat.context.get('chat.banners.kappa-train') )
// continue;
this.log.info('Removing community highlight: ', type, '#', entry.id);
this.community_dispatch({