alice_haha v1.0.6 Alice.Handlers.Haha

Alice haha

This handler will allow Alice to keep track of people laughing and reply with an image.

A laugh is considered any of the following:

~r/([ha][ha]+|lo+l|lmf?ao|rofl|roflmao)/i

Examples: lol haha lmao rofl loooool ha hahahahahaha roflmao LOL lol Lmfao lmao

Summary

Functions

All of the commands handled by this module

Deletes the entries in the state for a specific key

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

😂

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

haha winners - get the list of haha winners

Functions

commands()

All of the commands handled by this module

delete_state(conn, key)

Deletes the entries in the state for a specific key.

get_state(conn, key, default \\ nil)

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

haha(conn)

😂

match_commands(conn)

Match all commands in this module

match_routes(conn)

Match all routes in this module

put_state(conn, key, value)

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

routes()

All of the routes handled by this module

winners(conn)

haha winners - get the list of haha winners