Giter Site home page Giter Site logo

discord-delphi's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.