Created
March 6, 2017 15:00
-
-
Save cronokirby/27b3febce9a5114852694f3f48b61d74 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 Bot do | |
use Application | |
alias Alchemy.client | |
@token "token here" | |
def start(_, _) do | |
run = Client.start(@token) | |
use Commands | |
run | |
end |
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 Commands do | |
use Alchemy.Cogs | |
Cogs.def ping do | |
Cogs.say("pong!") | |
end | |
end |
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
def application do | |
[mod: {Bot, []}] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment