MARKOV


about


author:Bas van Oostveen
contact:IRCNET/#dunkbots
website:http://plugins.gozerbot.org
license:Public Domain

description


Gozerbot speaking madness


Markov Talk for Gozerbot

The Chain:
(predictate) -> [list of possible words]
TODO:
  • Propabilities
  • Start searching for full sentence, not just the first ORDER_K words of a sentence

commands


  1. markov-enable

    enable markov learning in [<channel>]

    <user> !markov-enable
    <output> #test is already enabled
    
    <user> !markov-enable #dunkbots
    <output> #dunkbots is already enabled
    
  1. markov

    ask for markov response

    <user> !markov nice weather
    <output> none
    
  2. markov-cfg

    plugin configuration

    <user> !markov-cfg
    <output> options: command=1 .. enable=['#test', '#dunkbots']
    <output>  .. onjoin=[]
    
  1. markov-cfgsave

    save plugin configuration

    <user> !markov-cfgsave
    <output> config saved
    
  1. markov-learn

    learn a logfile or learn an url

    <user> !markov-learn #dunkbots
    <output> learning log file #dunkbots
    
    <user> !markov-learn http://gozerbot.org
    <output> learned 74 lines
    
  1. markov-learnadd

    add channel or url to permanent learning .. this will learn the item on startup

    <user> !markov-learnadd #dunkbots
    <output> learning log file #dunkbots
    
    <user> !markov-learnadd http://gozerbot.org
    <output> learned 74 lines .. done
    
  1. markov-learndel

    remove item from learnlist

    <user> !markov-learndel #dunkbots
    <output> done
    
    <user> !markov-learndel http://gozerbot.org
    <output> done
    
  1. markov-learnlist

    show items in learnlist

    <user> !markov-learnlist
    <output> ['#test']
    
  1. markov-onjoinadd

    add channel to onjoin config

    <user> !markov-onjoinadd
    <output> #test added
    
    <user> !markov-onjoinadd #dunkbots
    <output> #dunkbots added
    
  1. markov-onjoinremove

    remove channel from onjoin config

    <user> !markov-onjoinremove
    <output> #test removed
    
    <user> !markov-onjoinremove #dunkbots
    <output> #dunkbots removed
    
  1. markov-size

    size of markovchains

    <user> !markov-size
    <output> I know 89618 phrases
    
  1. markov-disable

    disable markov learning in [<channel>]

    <user> !markov-disable
    <output> #test disabled
    
    <user> !markov-disable #dunkbots
    <output> #dunkbots disabled