mix nadia.gen.bot (nadia v1.3.0)

View Source

Generates a small Nadia bot handler and offline test.

mix nadia.gen.bot MyApp.Bot --polling

Polling is the default generated runtime. --polling is accepted for clarity. Webhook handlers use the same generated bot module, but endpoint generation is intentionally deferred until a framework-specific adapter exists.

The task creates:

  • lib/my_app/bot.ex
  • test/my_app/bot_test.exs

It also prints the config and supervision snippets needed to run the bot with Nadia.Polling. Application supervision files are not modified automatically.