chore(cmd): add proxy shorthand

This commit is contained in:
vulet 2021-06-07 15:36:07 +08:00
parent 54631f5c2a
commit 472552c33b

View file

@ -46,7 +46,7 @@ const eventHandler = (args, roomId, command, event) => {
}); });
command = 'post'; command = 'post';
break; break;
case 'proxy': case 'proxy': case 'p':
try { try {
const url = new URL(userInput); const url = new URL(userInput);
command = config.invidious.domains.includes(url.hostname) command = config.invidious.domains.includes(url.hostname)