discord-delphi
is a Discord bot that uses the Delphi AI to provide moral and ethical judgements. Through the bot, users can have their messages judged for morality. It is developed in TypeScript and relies on the Node module of delphi-ai.
The project was started in October 2021 using the codebase of the discord-cleverbot project.
Without a specific license, this code is the direct intellectual property of the original developer. It may not be used, copied, modified, or shared without explicit permission. Please see GitHub's guide on licensing and choosealicense.com.
For legal reasons, if you choose to contribute to this project, you agree to give up your copyright and hand over full rights to your contribution. However, you will still be attributed for your work on GitHub. Thank you!
- Create a new bot account in the Discord Developer Portal.
- Copy the access token of your bot for later.
- You will need an environment with Node installed (or use the Dev Container - see the Development section below).
- Run
git clone https://github.com/JstnMcBrd/discord-delphi.git
to clone the repo. - Create a new file called
.env
and add your access token, using.env.example
as an example.
- In the top directory, run
npm install
to download all necessary packages. - Run
npm run build
to build the project. - Run
npm run commands
to register slash commands with Discord. - Run
npm start
to start the bot.
- In the OAuth2>URL Generator tab in the Discord Developer Portal, generate an invite URL with the
applications.commands
scope. - Use the invite URL to add the bot to a server.
- @ mention your bot in a message and see the bot respond!
Visual Studio Code is the recommended IDE for development. All settings are included as artifacts in the .vscode
folder and will automatically apply. You can use the built-in debugger and set breakpoints to troubleshoot the code.