mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
Featured Follow buttons (#406)
* Basic featured follow support * Implement `do_authorize` * More work on Featured Follows. - Refresh button - Also implement emotes * Remove debug log * Remove featured emote support in favor of next merge * Fix linting errors * Implement requested changes * Fixes
This commit is contained in:
parent
4f1ebcdfbf
commit
7a01f5d79e
8 changed files with 368 additions and 2 deletions
|
@ -70,7 +70,14 @@ export default class SocketClient extends Module {
|
|||
this.on(':command:reconnect', this.reconnect, this);
|
||||
|
||||
this.on(':command:do_authorize', challenge => {
|
||||
this.log.warn('Unimplemented: do_authorize', challenge);
|
||||
// this.log.warn('Unimplemented: do_authorize', challenge);
|
||||
// We don't have our own IRC connection yet, so the site's chat has to do.
|
||||
|
||||
const _chat = this.resolve('site.chat');
|
||||
const chat = _chat && _chat.currentChat;
|
||||
const con = chat.chatService && chat.chatService.client && chat.chatService.client.connection;
|
||||
|
||||
if (con && con.send) con.send(`PRIVMSG #frankerfacezauthorizer :AUTH ${challenge}`);
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue