mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 15:57:50 +02:00
Do not allow GIFs in OCR
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "119.42.1",
|
||||
"version": "119.42.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user