Julia is a lightweight Discord bot that communicates with KoboldAI Client API to generate plausible text conversations with artificial intelligence models.
Julia can be used through slash commands with /ask <question>
or by mentioning her or replying to her messages.
You: @Julia What is your hair color?
Julia: It's black actually.
- Slash commands
- Responds to mentions and replies
/ask <question>
/ping
-
Install https://github.com/KoboldAI/KoboldAI-Client and its dependencies
-
Install NodeJS
-
Run
git clone https://github.com/TiagoMarinho/Julia
to clone Julia's repo -
Create a new Discord application in the Discord Developer Portal
-
Copy the token and client id of your new discord application and put it in
Julia/config.json
, like this:{ "token": "TOKEN HERE", "clientId": "CLIENT ID HERE", }
-
Install dependencies by running
npm install
inside Julia's root folder -
Run
node src/register-commands.mjs
inside Julia's root folder to register slash commands for the bot.
- Launch KoboldAI Client and wait for it to finish loading
- Select a model and set it to chat mode
- Run
node .
inside Julia's root folder to launch Julia
Contributions, even in the form of creating new issues, are more than welcome!
Here's a basic overview of the project structure for new contributors to get used to the code base:
src/main.mjs
is the entry pointsrc/commands/<category>/<command name>/main.mjs
is the file for a given command.src/shared/characters.json
contains the available characters for the bot.