Giter Site home page Giter Site logo

velocitydv / markovbot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 96 KB

send discord messages to your friends using a text generator created with Markov chain in python. Data scraped from Reddit

Python 100.00%
chatbot markovchain discord reddit python

markovbot's Introduction

Install all requirements by calling pip install -r requirements.txt

To install nltk requirements open python

import nltk
nltk.download('punkt')

Create a new file called secret_settings.py and add usertokens to secret_settings.py to send messages on discord or to scrap data from reddit To only send messages on discord do not need first 3 secret tokens as used for reddit.

# string
reddit_user_agent = ""
reddit_client_id = ""
reddit_client_secret = ""

# string
discord_token_secret = ''
# integar 
discord_channel_id = 

discord token secret is found through: inspect element -> application -> local storage -> token

discord channel id can be found through: inspect element -> network -> messages -> channelid

To generate the text run python generator.py n corpus_data. The recommended n for ngrams is 2 or 3.

The text generation has some imperfection as the code is not set to deal with the imperfections of comments from reddit users, therefore users can change the data corpus to something more appropriate

markovbot's People

Contributors

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