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

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

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%