bot_ex v0.2.0 BotEx.Config

Configurations module

Example:

config :bot_ex,
  middlware: [
    my_bot: [
      MyBot.Middleware.MessageTransformer,
      MyBot.Middleware.Auth
    ]
  ],
  handlers: [
    my_bot: [
      {MyBot.Handlers.Start, 1} # {module, count worker processes in pool}
    ]
  ],
  bots: [:my_bot]

Link to this section Summary

Functions

Return config value by name

Link to this section Functions

Link to this function

get(parameter)

get(atom()) :: any()

Return config value by name

Link to this function

init()

init() :: :ok