Code Monkey home page Code Monkey logo

pyborg-1up's Introduction

Pyborg is a markov chain bot for many protocols (Discord, IRC, Twitter, etc.) that generates replies based on messages and it's database.

PyPI codecov Build Status Documentation Status

Install

We're on the cheeseshop! Yay!

pip install pyborg

If you want the latest version from git you'll need to install the project with poetry in the source directory.

Early test/beta releases can be found via:

pip install --pre pyborg

Note that we're using Python 3.6+ (for fancy type declarations).

Python 2 support was dropped with the release of pyborg 2.0.

There are several extras: "nlp", "systemd", "subtitles", "graphing". Some extras may be rather experimental like "graphing" at time of writing.

e.g. pip install pyborg[nlp]

Basic Usage

pyborg is our new unified pyborg command line interface.

Documentation

Docs can be found on RTD.

Notes

Pyborg is skipping version 1.3; this was used for a transitory database/"brain" restructuring that was underwhelming.

Ancient original tarballs were hosted at Gna! which is now gone. Thankfully Internet Archive has a copy!

Pyborg was originally developed by Tom Morton and Sébastien Dailly.

Suggested NLTK data

Pyborg can use nltk tagging and tokenizing when installed and configured. Tagging requires averaged_perceptron_tagger and tokenization requires punkt. This needs the nlp extra.

pyborg-1up's People

Contributors

b-meson avatar edza1500 avatar invisiblek avatar jrabbit avatar researcx avatar voided avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pyborg-1up's Issues

1.4 now only responds with one word

DEBUG:pyborg.pyborg:{'x': 18, 'pre_words': {'': 0, 'is': 3, 'only': 1, 'was': 1, 'Totally': 2, 'extremely': 1, 'Not': 1, 'fucking': 1, 'everything': 1, 'not': 3, 'are': 1, 'something': 1, "They're": 1, 'be': 1}, 'done': 0, 'word': 'worth', 'k': 26, 'w': 14, 'known_min': 3, 'known': 20, 'index': ['worth'], 'i': 'man', 'words': ['what', 'is', 'the', 'worth', 'of', 'a', 'man'], '_words': ['what', 'is', 'the', 'worth', 'of', 'a', 'man'], 'body': 'what is the worth of a man', 'weight': <function pyborg.reply.<locals>.weight at 0x7f5b485447b8>, 'sentence': ['worth'], 'look_for': 'be', 'cwords': ['And', 'no', 'one', 'could', 'ever', 'explain', 'to', 'me', 'why', 'it', 'is', 'supposed', 'to', 'be', 'worth', 'it'], 'num_context': 1, 'context': 'And no one could ever explain to me why it is supposed to be worth it', 'l': 2993523182, 'mot': ['Totally'], 'numbers': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 19], 'liste': [('', 0), ('only', 1), ('was', 1), ('extremely', 1), ('Not', 1), ('fucking', 1), ('everything', 1), ('are', 1), ('something', 1), ("They're", 1), ('be', 1), ('definitely', 1), ('Totally', 2), ('is', 3), ('not', 3)], 'self': <pyborg.pyborg.pyborg object at 0x7f5b49442240>}
DEBUG:pyborg.pyborg:trying to unpack: {'hashval': 2470326545, 'index': 19}

custom irc commands

With venusian and our fancy decorator it's trivial to write commands for pyborg.

Nickname in use leads to hang

DEBUG:irc.client:command: nicknameinuse, source: rajaniemi.freenode.net, target: *, arguments: [u'PyBorg', u'Nickname is already in use.'], tags: None
DEBUG:irc.client:_dispatcher: nicknameinuse

Pypi entry

This is pretty stable now. Make sure its ready to go and ship it!

pip pyborg --upgrade

I've installed this inside and out. Easy install pip install pip3 install install from 1up git source. I've gotten it to connect to a few servers, but inconsistently. The biggest problem is it searches for pyborg.toml, which is not created nor given in any version of pyborg.

Known issue on 64 bit

python's hash() built-in is large on 64 bit computers too large for the built-in struct information, will have to write breaking new version (of the save format).

Unicode causes some problems?

File "/home/jack/Projects/pyborg-1up/pyborg/pyborg/pyborg.py", line 894, in reply
mot = liste[x][0]
IndexError: list index out of range

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.