Skip to content

Instantly share code, notes, and snippets.

View trojanh's full-sized avatar

Rajan Tiwari trojanh

  • Mumbai
View GitHub Profile
defmodule MyApp.Bot do
use Application
use GenServer
alias MyApp.{Repo, BotSetting}
import Logger
def start(_, state), do: {:ok, state}
def start_link do
GenServer.start_link(__MODULE__, [:ok], name: __MODULE__)