diff options
author | href <href@random.sh> | 2020-03-11 21:18:34 +0100 |
---|---|---|
committer | href <href@random.sh> | 2020-03-11 21:18:34 +0100 |
commit | a28d24470ddeca6196219a1333c1ccac1319efef (patch) | |
tree | 4f29e3c8fb6afbb1f99d6b8737f844c95fca54df /lib/lsg_irc/txt_plugin/markov.ex | |
parent | up to 420*100 (diff) |
welp
Diffstat (limited to 'lib/lsg_irc/txt_plugin/markov.ex')
-rw-r--r-- | lib/lsg_irc/txt_plugin/markov.ex | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/lsg_irc/txt_plugin/markov.ex b/lib/lsg_irc/txt_plugin/markov.ex new file mode 100644 index 0000000..311138c --- /dev/null +++ b/lib/lsg_irc/txt_plugin/markov.ex @@ -0,0 +1,9 @@ +defmodule LSG.IRC.TxtPlugin.Markov do + + @type state :: any() + @callback start_link() :: {:ok, state()} + @callback reload(content :: Map.t, state()) :: any() + @callback sentence(state()) :: {:ok, String.t} | {:error, String.t} + @callback complete_sentence(state()) :: {:ok, String.t} | {:error, String.t} + +end |