virtuoso v0.0.21 mix virtuoso.gen.routine

Generates a basic routine for a given Bot.

mix virtuoso.gen.bot BotName RoutineName

The first argument is the bot’s module name (BotName).

The second argument is the desired routine module name (RoutineName)

Generates project/lib/bot/routine/new_routine.ex

Link to this section Summary

Functions

Given a BotName and RoutineName return a routine template string

A task needs to implement run which receives a list of command line args

Link to this section Functions

Link to this function routine_template(bot_module_name, routine_module_name)

Given a BotName and RoutineName return a routine template string

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.