Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. defmodule NiceBot.Application do
  2. use Application
  3.  
  4. def start(_type, _args) do
  5. token = "378322483:AAFdz_7lJt69S5HO7ep2GgBqTc36AIo3Ouc"
  6.  
  7. children = [
  8. ExGram,
  9. {NiceBot.Bot, [method: :polling, token: token]}
  10. ]
  11.  
  12. opts = [strategy: :one_for_one, name: NiceBot.Supervisor]
  13. Supervisor.start_link(children, opts)
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement