exNoops v0.1.2 Exnoops.Vexbot View Source
Module to interact with Github's Noop: Vexbot
See the official `noop` documentation for API information including accepted paramters.
Link to this section Summary
Link to this section Functions
Link to this function
format_vectors(vectors) View Source
Link to this function
get_vector(opts \\ []) View Source
Query Vexbot for vector(s)
- Parameters are sent with a keyword list into the function.
Examples
iex> Exnoops.Vexbot.get_vector()
# [{a_x, a_y}, {b_x, b_y}, speed]
{:ok, [{{743, 147}, {60, 601}, 71}]}
iex> Exnoops.Vexbot.get_vector(count: 2)
{:ok, [{{743, 147}, {60, 601}, 71}, {{12, 34}, {56, 78}, 90}]}