Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add The Studio's chat plugin #7542

Merged
merged 10 commits into from
Oct 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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)) {
Comment on lines +2565 to +2566
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems bad, I thought we fixed this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

buf = await YouTube.generateVideoDisplay(link);
} else {
try {
Expand Down
Loading