GithubHelp home page GithubHelp logo

guoyu07 / markobot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from after12am/markovot

0.0 0.0 0.0 1.86 MB

A bot tweets an artificially created message using markov chain.

License: MIT License

PHP 100.00%

markobot's Introduction

markovot

This is a bot tweets an artificially created message using second order markov chain method. This method is a mathematical system that undergoes transitions from one state to another, between a finite or countable number of possible states. This method is available and effective in case of having relationships each other. Specifically, this will select next word corresponding to the probability of occurrence of the two words with connected. This will repeats this and get generated word sequence. Therefore this can tweet as if human tweets. This personification system is really absorbing, but is still little stupid. If interested, let's play on words.

Demo

@dev_12am

Requires

Open lib/constant.php and fill the below blank.

Configure::write('twitter.user_id', '');
Configure::write('twitter.password', '');
Configure::write('twitter.consumer_key', '');
Configure::write('twitter.consumer_secret', '');
Configure::write('twitter.access_token', '');
Configure::write('twitter.access_token_secret', '');
Configure::write('yahoo.app_id', '');

Usage

needs numerous public tweets for constructing an artificially message. So, we have to setup database at first.

cd /path/to/bin
./bot setup

command for pick up tweets is:

./bot pick [num]

command for tweet is:

./bot post

Notes

  • You can't post message without picking up timeline. run ./bot pick before run ./bot post.
  • If you want to set limit on pick command, set num as option after ./bot pick.

markobot's People

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.