Skip to content

Instantly share code, notes, and snippets.

@cronokirby
Created March 6, 2017 15:00
Show Gist options
  • Save cronokirby/27b3febce9a5114852694f3f48b61d74 to your computer and use it in GitHub Desktop.
Save cronokirby/27b3febce9a5114852694f3f48b61d74 to your computer and use it in GitHub Desktop.
defmodule Bot do
use Application
alias Alchemy.client
@token "token here"
def start(_, _) do
run = Client.start(@token)
use Commands
run
end
defmodule Commands do
use Alchemy.Cogs
Cogs.def ping do
Cogs.say("pong!")
end
end
def application do
[mod: {Bot, []}]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment