Skip to content

Jpx-lang/Chatbot-jpx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Chatbot JPX Example

This project demonstrates a simple chatbot program built using the JPX programming language.

The chatbot interacts with the user through the terminal and responds to basic messages.
This example is designed to help beginners understand how JPX can be used to build interactive programs.


Features

The chatbot example demonstrates several JPX concepts:

  • Reading user input
  • Conditional statements
  • Loops
  • Functions
  • Terminal output

The chatbot listens to user messages and returns predefined responses.


Concepts Demonstrated

User Input

The chatbot reads user messages from the terminal using the Scanner module.

Conditional Logic

The program checks user input and decides which response should be returned.

Functions

Chatbot responses can be organized using functions to keep the program structured and readable.

Loops

The chatbot can keep running until the user exits the program.


Modules Used

Scanner Module

The Scanner module allows the program to receive user input.

[Scanner];

Example Interaction

Example conversation with the chatbot:

User: hello
Bot: Hello! How can I help you?

User: what is your name
Bot: I am a JPX chatbot.

User: bye
Bot: Goodbye!

Running the Example

  1. Install JPX from the official repository.
  2. Download or clone this example project.
  3. Run the chatbot program using the JPX runtime.

Example command:

jpx run chatbot.jpx

Learning Goal

This example helps beginners learn:

  • How to build interactive programs
  • How to process user input
  • How to implement simple chatbot logic

Repository

Official JPX repository:

https://github.com/jpx-lang


License

This example follows the same license as the JPX language project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors