diff options
-rw-r--r-- | Admin.md | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -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) |