JstnMcBrd / discord-delphi

Ethics bot for Discord

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

discord-delphi

API status Validate

About

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.

Licensing

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!

Getting started

Creating a bot

Setting up the code

  • 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.

Running the code

  • 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.

Interacting with 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!

Development

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.

About

Ethics bot for Discord

License:GNU Affero General Public License v3.0


Languages

Language:TypeScript 99.7%Language:JavaScript 0.3%