rmcafee / discord_ex

Discord Elixir Library
MIT License
48 stars 13 forks source link

How do you use DiscordEx? #3

Closed nahtnam closed 8 years ago

nahtnam commented 8 years ago

Hey!

Im having trouble getting started with this library.

I created /lib/discord_ex/exbot.ex with the contents of the echobot example. Then in my main lib file, inside def start(_type, _args) do I put the following:

{:ok, bot_client } = DiscordEx.Client.start_link(%{
  token: "TOKEN_GOES_HERE",
  handler: Exbot
})

The app starts but then immediately shuts down.