summaryrefslogtreecommitdiff
path: root/lib/lsg_irc/txt_plugin/markov.ex
diff options
context:
space:
mode:
authorhref <href@random.sh>2020-03-11 21:18:34 +0100
committerhref <href@random.sh>2020-03-11 21:18:34 +0100
commita28d24470ddeca6196219a1333c1ccac1319efef (patch)
tree4f29e3c8fb6afbb1f99d6b8737f844c95fca54df /lib/lsg_irc/txt_plugin/markov.ex
parentup to 420*100 (diff)
welp
Diffstat (limited to 'lib/lsg_irc/txt_plugin/markov.ex')
-rw-r--r--lib/lsg_irc/txt_plugin/markov.ex9
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