https://github.com/boneill02/jules
chat bot
https://github.com/boneill02/jules
bot c chat-bot chatbot
Last synced: over 1 year ago
JSON representation
chat bot
- Host: GitHub
- URL: https://github.com/boneill02/jules
- Owner: boneill02
- License: mit
- Created: 2020-03-31T19:20:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-17T04:11:09.000Z (over 3 years ago)
- Last Synced: 2025-01-24T20:43:47.618Z (over 1 year ago)
- Topics: bot, c, chat-bot, chatbot
- Language: C
- Homepage:
- Size: 41 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jules
A non-learning chat bot which consists of a backend written in about
200 lines of C.
## Building
$ make # build
$ make install # install
## Usage
$ # after building, run the example bot configuration
$ ./jules scripts/texting.jul
$
$ # if you installed it, you can execute the example file itself:
$ ./scripts/texting.jul
## Custom Bot Configurations
There are four sections in a configuration file. These are "NAME", "START", "PATTERN", and "DEFAULT".
These are terminated by the beginning of the next section or by the end of file.
### NAME
The `NAME` section gives the bot a name. Whenever the bot responds, the value of NAME will be shown in
the prefix of its response. For example, a bot named "Alice" would respond in this format:
Alice: this is my message
The syntax for this section is simple.
NAME:
### START
The `START` section describes the initial message the bot will send when started. You could say it is their
greeting. The syntax is the same as NAME.
START:
### PATTERN
The `PATTERN` section dictates which response will be given based on a regular expression. These are POSIX extended
regular expressions, which can be referenced in the regex(7) manual page. Each line represents a pattern and the
comma separated response(s) that should be given (if there are multiple one will be chosen at random). For example:
PATTERN:
^(hi|hello).*:hey # single response
^(how are you|how's it going).*:good,ok,bad # multiple possible responses
### DEFAULT
The `DEFAULT` section provides responses that will be given if a pattern is not found. The syntax is similar to `PATTERN`,
except that each whole line is a possible response which will be chosen at random. For example:
DEFAULT:
i don't understand
what do you mean?
i'm not sure what that means
## License
Copyright (C) 2020-2021 Ben O'Neill . License: MIT.
See LICENSE for more details.