Skip to content

BoyManWamen/ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ChatBot

GitHub Repo stars Translate

Table of Contents

Description

This chatbot is a versatile Discord bot designed to enhance your server's communication experience. With its powerful capabilities, it seamlessly integrates Google APIs, Beautiful Soup, and the Google Translate module to provide a comprehensive set of features. Whether you need information from the web, real-time translations, or just a friendly chat, this Discord bot has you covered.

Commands

The translate command takes in two parameters for languages that are separated by a hyphen. It then takes in more arguments after to be translated.

+translate English-Spanish hello

The image command scrapes google for images. It can either take one or two parameters. If you use one parameter, then the bot will send one scraped image back. If you use two parameters, the first parameter will be used for supplying the number of images to send back and the second parameter is the keyword used for scraping.

+image Meme +image 3 Memes

The search command can also take in either one or two parameters.

+search Meme +search 3 Meme

The YouTube command scrapes YouTube videos.

+youtube Meme +youtube 3 Meme

The chat command is used to send a message to the chatbot and await a reply from the Chat AI.

+chat Hey

ChatBot: Hello

Getting Started

Dependencies

The list of dependencies for this Discord bot includes a wide range of libraries that cover various functionalities. Below is a summary of the key dependencies:

discord.py==1.6.0: The official Discord API wrapper for Python.

h2==3.2.0, httpcore==0.9.1, httpx==0.13.3: Libraries for handling HTTP requests, important for Discord interaction.

aiohttp==3.7.4.post0: Asynchronous HTTP client/server for Discord. Web Scraping and Parsing:

beautifulsoup4==4.9.3: Library for web scraping and HTML/XML parsing. googlesearch-python-extended==2020.1.0: A library for performing Google searches programmatically. Google API and Translation:

google==3.0.0, google-auth==1.27.0, google-auth-oauthlib==0.4.2: Libraries for working with Google APIs and authentication.

googletrans==3.1.0a0: Python wrapper for Google Translate. Miscellaneous Libraries:

attrs==20.3.0, cachetools==4.2.1, certifi==2020.12.5, chardet==3.0.4, idna==2.10, multidict==5.1.0, requests==2.25.1, urllib3==1.26.3: Common libraries for various functionalities, including data manipulation, caching, and handling HTTP requests. Other Dependencies:

numpy==1.20.1, scipy==1.6.1, matplotlib==3.3.4: Libraries for numerical and scientific computing, useful for certain advanced features.

nltk==3.5: Natural Language Toolkit for language processing tasks.

mypy-extensions==0.4.3: Extensions to the mypy type checker.

pyyaml==5.3.1, ruamel.yaml==0.16.12: Libraries for YAML parsing and manipulation.

Installing

Once you have cloned the repository, make sure to download all of the dependencies with the following commands.

cd ChatBot
pip install -r requirements.txt

Executing Program

In order to run the program, you can use the following command in the terminal.

python src\chatbot.py

Once you have the bot running, you can create an invite link with the Discord API. Documentation for how is linked below.

Documentation

Help

Support Server

Bot Invite Link

Authors

Huy Hoang

Version History

  • 1.0.0
    • Initial Release

License

This project is licensed under the MIT License