alice_karma v0.3.3 Alice.Handlers.Karma

Allows Alice to keep track of karma points for arbitrary terms

Link to this section Summary

Functions

karma best 10 - get the top terms (amount is optional)

term~~ - check the karma for a term

All of the commands handled by this module

term-- - decrease the karma for a term

Deletes the entries in the state for a specific key

karma empty term - clear the karma for a single term

karma empty all the karma and yes I actually really mean to do this - clear the karma for all terms

Get the state from an Alice.Conn struct, namespaced to this module

term++ - increase the karma for a term

Match all commands in this module

Match all routes in this module

Update the state of an Alice.Conn struct, namespaced to this module

All of the routes handled by this module

karma worst 10 - get the lowest terms (amount is optional)

Link to this section Functions

karma best 10 - get the top terms (amount is optional)

term~~ - check the karma for a term

All of the commands handled by this module

Link to this function decrement(conn)

term-- - decrease the karma for a term

Link to this function delete_state(conn, key)

Deletes the entries in the state for a specific key.

karma empty term - clear the karma for a single term

Link to this function empty_all(conn)

karma empty all the karma and yes I actually really mean to do this - clear the karma for all terms

Link to this function get_state(conn, key, default \\ nil)

Get the state from an Alice.Conn struct, namespaced to this module

Link to this function increment(conn)

term++ - increase the karma for a term

Link to this function match_commands(conn)

Match all commands in this module

Link to this function match_routes(conn)

Match all routes in this module

Link to this function put_state(conn, key, value)

Update the state of an Alice.Conn struct, namespaced to this module

All of the routes handled by this module

karma worst 10 - get the lowest terms (amount is optional)