Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add The Studio chat plugin (#7542)
  • Loading branch information
KrisXV committed Oct 24, 2020
1 parent 4757d1e commit 57e3d7c
Show file tree
Hide file tree
Showing 6 changed files with 644 additions and 3 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Expand Up @@ -11,4 +11,5 @@ server/chat-plugins/random-battles.ts @KrisXV @TheImmortal
server/chat-plugins/repeats.ts @AnnikaCodes
server/chat-plugins/rock-paper-scissors.ts @mia-pi-git
server/chat-plugins/scavenger*.ts @xfix @sparkychildcharlie
server/chat-plugins/the-studio.ts @KrisXV
server/chat-plugins/trivia.ts @AnnikaCodes
5 changes: 5 additions & 0 deletions config/config-example.js
Expand Up @@ -457,6 +457,11 @@ exports.forcedpublicprefixes = [];
*/
exports.startuphook = function () {};

/**
* lastfmkey - the API key to let users use the last.fm commands from The Studio's
* chat plugin.
*/
exports.lastfmkey = '';

/**
* chatlogreader - the search method used for searching chatlogs.
Expand Down
4 changes: 2 additions & 2 deletions server/chat-commands/info.ts
Expand Up @@ -2562,8 +2562,8 @@ export const commands: ChatCommands = {
const [link, comment] = Utils.splitFirst(target, ',');

let buf;
if (YoutubeInterface.linkRegex.test(link)) {
const YouTube = new YoutubeInterface();
const YouTube = new YoutubeInterface();
if (YouTube.linkRegex.test(link)) {
buf = await YouTube.generateVideoDisplay(link);
} else {
try {
Expand Down

0 comments on commit 57e3d7c

Please sign in to comment.