Created
June 9, 2019 11:11
-
-
Save Ironjanowar/2be5c758e0d6c7abbe31dbb0c0df57e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule NiceBot.Application do | |
use Application | |
def start(_type, _args) do | |
token = "378322483:AAFdz_7lJt69S5HO7ep2GgBqTc36AIo3Ouc" | |
children = [ | |
ExGram, | |
{NiceBot.Bot, [method: :polling, token: token]} | |
] | |
opts = [strategy: :one_for_one, name: NiceBot.Supervisor] | |
Supervisor.start_link(children, opts) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment