Implement OCR
This commit is contained in:
parent
dc5cfd3d7b
commit
82e8f2387f
2
main.cjs
2
main.cjs
@ -2,7 +2,7 @@
|
|||||||
// Require the necessary discord.js classes
|
// Require the necessary discord.js classes
|
||||||
const { Client, Events, GatewayIntentBits, REST, Routes, Collection, FLAGS, MessageMentionOptions, codeBlock, SlashCommandBuilder, blockQuote } = require('discord.js');
|
const { Client, Events, GatewayIntentBits, REST, Routes, Collection, FLAGS, MessageMentionOptions, codeBlock, SlashCommandBuilder, blockQuote } = require('discord.js');
|
||||||
const Discord = require('discord.js');
|
const Discord = require('discord.js');
|
||||||
import { createWorker } from 'tesseract.js';
|
const { createWorker } = require('tesseract.js');
|
||||||
const { clientId, guildId, token } = require('./key.json');
|
const { clientId, guildId, token } = require('./key.json');
|
||||||
let fs = require('node:fs');
|
let fs = require('node:fs');
|
||||||
let path = require('node:path');
|
let path = require('node:path');
|
||||||
|
Loading…
Reference in New Issue
Block a user