/DiscordUtilBot

Discord Bot 2.0

Primary LanguagePythonMIT LicenseMIT

Utility bot for Discord

A Discord bot used for various generic functions. This project was made for private use, but has been made public because of multiple requests. The bot was made using Python 3.7.0. It utilizes a local SQLite database for storing an index to the .wav files added to the bot. This database is also used to store keywords, responses and admins. Two external API's are used to supply the bot with random cat facts and weather information. The weather API requires an API key to be used.

  • Playing .wav files
  • Reading text from images
  • Admin system
  • Pick playing cards
  • Generate weather reports
  • Respond keywords
  • Some other stuff

Usage

  1. Run start.bat to generate an empty config.json (Located at [BOT_DIR]/resources/config/json.config)
  2. Open json.config
  3. Token: This is where you place your Discord Oauth2 token
  4. Weather_key: To use the "!weather" function this field needs to be supplied with an API key from OpenWeatherMap
  5. Tesseract_Location: To use the "!read" function on an image this field needs to be supplied with a path to "tesseract.exe" download tesseract-ocr from their website
  6. Owner_id: Place your unique Discord user ID here