BotEx.Config (bot_ex v1.0.2)

Configurations module

Example:

config :bot_ex,
  middleware: [
    my_bot: [
      MyBot.Middleware.MessageTransformer,
      MyBot.Middleware.Auth
    ]
  ],
  handlers: [
    my_bot: [
      {MyBot.Handlers.Start, 1000} # {module, bufering time}
    ]
  ],
  bots: [:my_bot]

Summary

Functions

get(param_key, default \\ nil)

@spec get(atom(), any()) :: any()

Return config value by name

init()

@spec init() :: :ok

put(param_key, value)

@spec put(atom(), any()) :: any()