Skip to content

🤖 Chatbot application using Vanilla JavaScript and Bootstrap, command-based actions and persistent chat history.

Notifications You must be signed in to change notification settings

Pexilo/Chatbots

 
 

Repository files navigation

🤖 Chatbots Academic Exam

Live demo https://pexilo.github.io/Chatbots/

⚡ About the Project

This project involves creating three interactive bots capable of responding to various commands. Each bot has specific functionalities:

  1. Vacations Bot: Provides information on holidays in France.
  2. Player Stats Bot: Offers game statistics for platforms like Steam, Minecraft, and Xbox.
  3. YesNo Bot: Answers questions with "yes" or "no".

Note that this project and its features are written in French 🥖

📋 Requirements to Validate

https://docs.google.com/document/d/1heTQDwTp74eNlSB4l0NSd57VYKOk4R0BBSaOII8tj8k

🛠 Installation

  1. Clone the repository:

    git clone https://github.com/Pexilo/chatbots.git
    cd chatbots
  2. Install the dependencies:

    npm install

🔧 Usage

Run the application:

npm run dev

✨ Available Commands

🏖️ Vacations Bot

  • hello: Bot introduction.
  • help: List of available commands.
  • next: Upcoming holidays.
  • past: Past holidays.
  • all: All holidays.

🎮 Player Stats Bot

  • hello: Bot introduction.
  • help: List of available commands.
  • steam 'playerId': Steam player statistics.
  • minecraft 'playerId': Minecraft player statistics.
  • xbox 'playerId': Xbox player statistics.

✅❌ YesNo Bot

  • hello: Bot introduction.
  • help: List of available commands.
  • ask 'your phrase': Answers a question with "yes" or "no".
  • random: Random "yes" or "no" answer.
  • guess 'yes'/'no': Guess if the answer is "yes" or "no".

🧑‍💻 APIs

Fetches holidays from the Nager.Date API.
Fetches player statistics from PlayerDB.
Answers "yes" or "no" from the YesNo API.

🦾 Powered by


Made with ❤️ by Pexilo

About

🤖 Chatbot application using Vanilla JavaScript and Bootstrap, command-based actions and persistent chat history.

Resources

Stars

Watchers

Forks

Languages

  • JavaScript 85.6%
  • CSS 11.7%
  • HTML 2.7%