Do not allow GIFs in OCR

This commit is contained in:
Dragon Fire
2020-11-13 23:03:13 -05:00
parent 29f1be6f2c
commit a47066dd95
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -27,6 +27,7 @@ module.exports = class OcrCommand extends Command {
}
async run(msg, { image }) {
if (image.toLowerCase().endsWith('.gif')) return msg.reply('I cannot read text from GIF images.');
await reactIfAble(msg, this.client.user, LOADING_EMOJI_ID, '💬');
const worker = createWorker();
await worker.load();
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "119.42.1",
"version": "119.42.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {