alice v0.2.2 Alice.Earmuffs

Summary

Functions

All of the commands handled by this module

Deletes the entries in the state for a specific key

earmuffs - Alice will ignore your next message in the current channel

  • Scoped to user and channel
  • Lasts for a single message

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

Functions

block(conn)
blocked?(conn)
commands()

All of the commands handled by this module

delete_state(conn, key)

Deletes the entries in the state for a specific key.

earmuffs(conn)

earmuffs - Alice will ignore your next message in the current channel

  • Scoped to user and channel
  • Lasts for a single message
get_state(conn, key, default \\ nil)

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

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

unblock(conn)