summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Admin.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/Admin.md b/Admin.md
index 0724ab8..6380a43 100644
--- a/Admin.md
+++ b/Admin.md
@@ -40,3 +40,28 @@ Everything is supposed to be ran inside a remote IEx console: `./bin/lsg remote`
### Declare a plugin
IRC.Plugin.declare(module)
+
+## Account/Users
+
+### Get an account by ID
+
+ IRC.Account.get(id)
+
+### Find account by network & nick
+
+ IRC.Account.find_by_nick(network, nick)
+
+## Alcoolog
+
+* History: `AlcoologPlugin.user_history(id)`
+
+
+### Remove an entry
+
+ id = "" # Some account id
+ alc = LSG.IRC.AlcoologPlugin.data_state()
+ # 249°
+ elem = h |> Enum.find(fn(el) -> elem(el, 4) == 249 end)
+ # 249cl
+ elem = h |> Enum.find(fn(el) -> elem(el, 3) == 249 end)
+ :dets.delete_object(alc.dets, elem)