MARKOV


about


author:Bas van Oostveen
contact:FREENODE/#fbf
distribution:core
license:

description


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
BHJTW:
  • adapted for JSONBOT, FBFBOT

commands


commands in this plugin:
 markov-learnadd .. markov-size .. markov-onjoinadd .. markov .. markov-cfg .. markov-disable .. markov-learnlist .. markov-onjoinremove .. markov-cfgdefined .. markov-enable .. markov-learn .. markov-learndel .. markov-cfgsave

  1. markov .. [handle_markov]

    description:this is the command to make the bot reply a markov response
    permissions:USER .. WEB .. CLOUD
    code:markov command.
    examples:
    <user> ;markov nice weather
    <output> none
  2. markov-cfg .. [cfg]

    description:the config (cfg) command.
    permissions:OPER
    code:PersistConfig class.
    examples:
    <user> ;markov-cfg
    <output> options: cfile="docs/docrun/config/plugs/fbf.plugs.extra.markov" .. command=0 .. datadir="docs/docrun/" .. dir="docs/docrun/config" .. enable=['["testbot", "#test"]', '["testbot", "#dunkbots"]'] .. filename="plugs/fbf.plugs.extra.markov" .. hide=[] .. issaved=True .. jsondb=None .. logname="config/plugs/fbf.plugs.extra.markov" .. loud=0 .. modname="fbf.plugs.extra.markov" .. - 1 more
  3. markov-cfgdefined .. [cfgdefined]

    description:show defined attributes.
    permissions:OPER
    code:PersistConfig class.
    examples:
    <user> ;markov-cfgdefined
    <output> cfg has the following options defined: cfile, command, datadir, dir, enable, filename, hide, issaved, jsondb, logname, loud, modname, onjoin, origdir, origname, plugname, port, target, uuid
  4. markov-cfgsave .. [cfgsave]

    description:save config.
    permissions:OPER
    code:PersistConfig class.
    examples:
    <user> ;markov-cfgsave
    <output> config saved
  5. markov-disable .. [handle_markovdisable]

    description:disable markov in a channel
    permissions:OPER
    code:markov-disable command.
    examples:
    <user> ;markov-disable
    <output> #test disabled
    <user> ;markov-disable #dunkbots
    <output> #dunkbots disabled
  6. markov-enable .. [handle_markovenable]

    description:enable markov in a channel .. learn the log of that channel
    permissions:OPER
    code:markov-enable command.
    examples:
    <user> ;markov-enable
    <output> #test enabled
    <user> ;markov-enable #dunkbots
    <output> #dunkbots enabled
  7. markov-learn .. [handle_markovlearn]

    description:command to let the bot learn a log or an url .. learned data is not persisted
    permissions:OPER
    code:markov-learn command.
    examples:
    <user> ;markov-learn #dunkbots
    <output> learning log file #dunkbots
    <output> learned 0 lines
    <user> ;markov-learn http://gozerbot.org
    <output> learned 48 lines
  8. markov-learnadd .. [handle_markovlearnadd]

    description:add log or url to be learned at startup or reload
    permissions:OPER
    code:markov-learnadd command.
    examples:
    <user> ;markov-learnadd #dunkbots
    <output> #dunkbots is already in learnlist
    <user> ;markov-learnadd http:///docs/fbfbot
    <output> done
  9. markov-learndel .. [handle_markovlearndel]

    description:remove item from learnlist
    permissions:OPER
    code:markov-learndel command.
    examples:
    <user> ;markov-learndel #dunkbots
    <output> done
    <user> ;markov-learndel http:///docs/fbfbot
    <output> done
  10. markov-learnlist .. [handle_markovlearnlist]

    description:show the learnlist
    permissions:OPER
    code:markov-learnlist command.
    examples:
    <user> ;markov-learnlist
    <output> ['#test', '#test']
  11. markov-onjoinadd .. [handle_markovonjoinadd]

    description:add channel to onjoin list
    permissions:OPER
    code:markov-onjoinadd command.
    examples:
    <user> ;markov-onjoinadd
    <output> #test added
    <user> ;markov-onjoinadd #dunkbots
    <output> #dunkbots added
  12. markov-onjoinremove .. [handle_markovonjoinremove]

    description:remove channel from onjoin list
    permissions:OPER
    code:markov-onjoinremove command.
    examples:
    <user> ;markov-onjoinremove
    <output> #test not in onjoin list
    <user> ;markov-onjoinremove #dunkbots
    <output> #dunkbots removed
  13. markov-size .. [handle_markovsize]

    description:markov-size .. returns size of markovchains
    permissions:OPER
    code:markov-size command.
    examples:
    <user> ;markov-size
    <output> I know 0 phrases

Table Of Contents

Previous topic

LMGT

Next topic

MPD

This Page