Marcus Valerius Martialis, "Martialis" is a Optical character recognition discord bot running on Google's Tesseract OCR Engine.
If you plan to modify this bot have to:
- Have tesseract installed on your platform as well as all the libraries and stuff
- Keep the credits, and a link to this repository in all the files that contains my code
- Keep the same license for unchanged code
Before requesting support, you should know that this bot requires you to have at least a basic knowledge of Python, Google's OCR Engine (Tesseract), and the libraries involved. Do not use the bot or attempt to modify it if you don't know the basics. Here's a link for resources to learn python.
If you need some help for something, do not hesitate to contact me on discord @aura0003
OCR commands can take some time to get registered globally, so if you want to run batches you should use the ocr 'link'
command via dms to ignore channel clutter.
Also make sure that all Intents are enabled both in the code and the Discord Developer Portal
# Setting Intents & Prefix
intents = discord.Intents.all()
client = commands.Bot(command_prefix = '', intents=intents) # Command Prefix
Please do not open issues or pull requests about things that are written in the TODO file, they are already under work for future versions
- Clone/Download the repository
- To clone it and get the updates you can definitely use the command
git clone
- To clone it and get the updates you can definitely use the command
- Create a discord bot here
- Get your bot token and place it in the
token.token
file - Invite your bot on servers using the following invite:
https://discord.com/oauth2/authorize?&client_id=YOUR_APPLICATION_ID_HERE&scope=bot+applications.commands&permissions=PERMISSIONS (
Replace
YOUR_APPLICATION_ID_HERE
with the application ID and replacePERMISSIONS
with the required permissions (8)
To start the bot you simply need to launch, either your terminal (Linux, Mac & Windows), or your Command Prompt (Windows).
Before all that though, we need to install Google's Tesseract on our system if we want the OCR to work. All installation guides can be found at https://tesseract-ocr.github.io/tessdoc/Installation.html.
Before running the bot you will need to install all the requirements with this command:
pip3 install -r requirements.txt
pip3 install opencv-contrib-python
After that you can start it with
python3 bot.py
Note You may need to replace
python
withpy
,python3
,python3.11
, etc. depending on what Python versions you have installed on the machine.
Note The file
app.py
is the EDSR staging file, no need to run or fiddle with it unless you want to understand the EDSR Super Res code.
Disclaimer When using the template you confirm that you have read the license and understand that I can take down your repository if you do not meet these requirements.