mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 04:23:45 -05:00
Revert /show and /requestshow to use <youtube> again
This commit is contained in:
parent
6ce1e311ef
commit
6cccd0935a
|
|
@ -226,7 +226,7 @@ export class YoutubeInterface {
|
|||
if (id.includes('?')) id = id.split('?')[0];
|
||||
return id;
|
||||
}
|
||||
async generateVideoDisplay(link: string, fullInfo = true) {
|
||||
async generateVideoDisplay(link: string, fullInfo = false) {
|
||||
if (!Config.youtubeKey) {
|
||||
throw new Chat.ErrorMessage(`This server does not support YouTube commands. If you're the owner, you can enable them by setting up Config.youtubekey.`);
|
||||
}
|
||||
|
|
@ -565,7 +565,7 @@ export const commands: ChatCommands = {
|
|||
async video(target, room, user) {
|
||||
room = this.requireRoom('youtube' as RoomID);
|
||||
this.checkCan('mute', null, room);
|
||||
const buffer = await YouTube.generateVideoDisplay(target);
|
||||
const buffer = await YouTube.generateVideoDisplay(target, true);
|
||||
this.runBroadcast();
|
||||
this.sendReplyBox(buffer);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user