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';
break;
case 'proxy':
case 'proxy': case 'p':
try {
const url = new URL(userInput);
command = config.invidious.domains.includes(url.hostname)