alice_eats v0.1.1 Alice.Handlers.Eats

This is an Alice handler to help you decide what to eat.

Link to this section Summary

Functions

eats add <restaurant> - add a new restaurant to your group

where should I eat? what's for lunch?

  • have Alice suggest a place to eat

I'm hungry - have Alice suggest a place to eat (ignored if not in a group)

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

eats join <group> - join a group (and create it if it doesn’t exist)

eats leave - leave your current group

eats list groups - list all groups

eats members - list all members in all groups

eats list - list all restaurants in your group

Match all commands in this module

Match all routes in this module

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

eats remove <restaurant> - remove a restaurant from your group

All of the routes handled by this module

Link to this section Functions

Link to this function add_restaurant(conn)

eats add <restaurant> - add a new restaurant to your group

where should I eat? what's for lunch?

  • have Alice suggest a place to eat
Link to this function choose_opt(conn)

I'm hungry - have Alice suggest a place to eat (ignored if not in a group)

All of the commands handled by this module

Link to this function delete_state(conn, key)

Deletes the entries in the state for a specific key.

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 join_group(conn)

eats join <group> - join a group (and create it if it doesn’t exist)

Link to this function leave_group(conn)

eats leave - leave your current group

Link to this function list_groups(conn)

eats list groups - list all groups

Link to this function list_members(conn)

eats members - list all members in all groups

Link to this function list_restaurants(conn)

eats list - list all restaurants in your group

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

Link to this function remove_restaurant(conn)

eats remove <restaurant> - remove a restaurant from your group

All of the routes handled by this module