Coder Social home page Coder Social logo

intelligent-discord-bot's Introduction

A http request from the chatgpt api in a discord bot

This repository contains the code for a Discord intelligent automaton.

built with

Introduction

This repository contains the "intelligent-discord-bot," a Discord program. This program was created with the intention of providing a simple method for adding artificial intelligence to the user's Discord server. The program uses the TensorFlow library to train an artificial intelligence machine learning model using data from its Discord server. He can be trained to recognize patterns in messages, such as whether a message is a question or a response. Additionally, the program can be set up to automatically reply to Discord server messages. The responses are generated using the [markovify] library (https://github.com/jsvine/markovify).

How to use

You must install the necessary dependencies and clone this repository in order to start using the program. Additionally, you will need to create a file called config.json in the root of the repository with the following settings:

{
  "discord_token": "SEU_TOKEN_DO_DISCORD",
  "owner_id": "SEU_ID_DO_DISCORD",
  "prefix": "!"
}

You can obtain your Discord code by visiting this page (https://discordapp.com/developers/applications/me). To start the program, run the following command: python3 main.py

IMAGES

Commands

The program has the following commands:

-!train: Begin the machine learning model's training procedure. !predict: Make a prediction about the specified message. -!respond: Enable or disable the bot's automatic response. -!help: Displays a collection of commands.

installation

  1. clone the repo
    git clone https://github.com/CarllosHenrique/Intelligent-discord-bot.git
  2. install dependencies
    python3 main.py

contributing

  1. fork the project
  2. create your feature branch
git checkout -b feature/AmazingFeature
  1. commit your changes
git commit -m 'Add some AmazingFeature'
  1. push to the branch
git push origin feature/AmazingFeature
  1. open a pull request

intelligent-discord-bot's People

Contributors

carlloshenrique avatar

Watchers

 avatar

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.