exNoops v0.1.1 Exnoops.Mashbot View Source

Module to interact with Github's Noop: Hexbot

See the official noop documentation for API information including the accepted parameters.

Link to this section Summary

Functions

Query Mashbot for... well, a mash of responses

Link to this section Functions

Link to this function

query(opts \\ []) View Source
query(keyword()) :: {atom(), map()}

Query Mashbot for... well, a mash of responses

  • Parameters are sent with a keyword list into the function.
  • Parameters that accept multiple values should be put into the keyword list like {:key, [value1, value2]}. See example below.

Examples

iex> Exnoops.Mashbot.query()
{:ok, %{
  "hexbot" => [
    "#E9B104"
  ],
  "directbot" => [
    { :right, 58, 7, nil }
  ],
  "polybot" => [
    [
      {823, 349},
      {812, 405},
      {775, 406},
      {748, 407},
      {724, 427},
      {673, 484},
      {656, 454},
      {648, 407},
      {546, 419},
      {604, 370},
      {529, 337},
      {533, 322},
      {552, 276},
      {581, 255},
      {614, 240},
      {653, 222},
      {692, 186},
      {732, 176},
      {788, 209},
      {768, 253},
      {824, 286},
      {820, 291}
    ]
  ],
  "vexbot" => [
    {
      {65, 197},
      {640, 879},
      57
    }
  ]
}}