Giter Site home page Giter Site logo

hc20k / discordchatai-gpt2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nickbrisebois/discordchatai-gpt2

1.0 1.0 0.0 1006 KB

A chat AI discord bot written in python3 using GPT-2, trained on data scraped from every message of my discord server (can be trained on yours too)

Python 100.00%

discordchatai-gpt2's Introduction

discord gpt2 chatbot

(based on https://github.com/NickBrisebois/DiscordChatAI-GPT2) uses Python 3

Bot responds to mentions and also has a 25% chance of responding to random messages. Bot can also briefly remember previous messages and use their context.

To train:

Run python3 main.py --genmodel to train. Requires a .txt file of the text channel history to be placed in the same directory as name called "chat.txt". An example of the chat.txt format is provided. It's defaulted to the 355M dataset, but you can change its value in main.py and in Bot/ai.py.

To test:

You can test this bot locally by running python3 main.py -t. It will let you input some text and it will print the AI's response.

To run on Discord:

python3 main.py --token [discord bot token]

discordchatai-gpt2's People

Contributors

hc20k avatar nickbrisebois avatar

Stargazers

 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.