Giter Site home page Giter Site logo

lolmarkov's Introduction

Discord Scraper and Markov Chain Talkbot

This is a super simple duo of bots: one for scraping the entire history of a server, and another for creating a bot to generate messages from users using markov chains. The talkbot uses the sqlite3 database created by the scrape bot to create its markov chains.

Dependencies

See requirements.txt.

Running

Each bot needs its own token. Place your tokens in their respective config files, config.ini and config_lolmarkov.ini. Pass --help to see more command-line options.

Permissions

The scraper needs history permissions (permissions=65536) and the markov chain talkbot needs "Send Messages" and "Add Reactions" (permissions=2112).

Commands

The scraping bot works in the background and has no commands.

The talkbot has the following commands.

  • $switch USER: Switch the model to the user. Users currently in the server can be specified by ID, Mention, Username, or Username#discriminator. Users not in the server can be specifeid by Username#discrimnator as they appeared when the data set was scraped.
  • $talk [init]: Generate a random message, given up to two words to start the sentence. This command may fail if there is not enough data for the current model.

See more commands with $help.

lolmarkov's People

Contributors

gibstick avatar mikytron123 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.