Skip to content

Mx772/DiscordChatParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DiscordChatParser

Reads Discord Chat and parses chat.

This was written for someone in a discord where giveaways would randomly pop-up. The use-case was that chat would go fast, and the user needed to be able to react within 30 seconds to a new giveaway being posted.

The bot has now since changed, and the keyword can be changed to 'Ends':

image

It was previously based on the embed from:

https://github.com/jagrosh/GiveawayBot

image

SETUP:

You must have:

  • numpy
  • playsound
  • pytesseract
  • cv2
  • PIL

Note: Pytesseract can be downloaded from google: Tesseract OCR

Config:

keywords array takes an array of strings to detect.

pyTessPath takes a path to your PyTesseract path.

Ex:

C:\Users\MyPC\Documents\Tesseract-OCR\tesseract.exe

boundingBox takes the coords of your screen to search. You can use ShareX to get coords using region capture.

image

sound is a bool which will play sound or not when text is found.

soundFile is a path to the sound file to play.

pauseTime is the amount of seconds to wait after finding any keyword.

debug enables debug mode.

greyScale converts the image to greyscale which can help with OCR.

DEBUG:

Enabling Debug mode will show the image captured by ImageGrab. It will also print the words found in the captured image.

About

Reads Discord Chat and parses chat.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages