Compare commits

...

2 Commits

Author SHA1 Message Date
Rachel Fae Fox 835079d42b started working on stuff for #1 2022-11-07 22:00:10 -05:00
Rachel Fae Fox 0456741651 update the readme to be a bit more useful in how to run it. 2022-11-07 21:59:34 -05:00
2 changed files with 19 additions and 3 deletions

View File

@ -32,7 +32,14 @@ config :nostrum,
num_shards: :auto
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/discordirc](https://hexdocs.pm/discordirc).
## Running
This is still in heavy development so i haven't handled running it as
a release or anything special like that you can still run it with iex.
```shell
$ iex -S mix
```
This does have advantages, for example, if you need to upgrade your
bot you can just type `recompile` and update it without restarting.

View File

@ -138,6 +138,15 @@ defmodule Discordirc.IRC do
{:noreply, state}
end
def handle_info({:discord_cmd, :kick, users}) do
end
def handle_info({:discord_cmd, :ban, users}) do
end
def handle_info({:discord_cmd, :mode, modestr}) do
end
def handle_info({:discord_cmd, :topic, topic}) do
end
def handle_info({:connected, server, port}, state) do
Logger.debug("Connected to #{server}:#{port}")
Logger.debug("Logging to #{server}:#{port} as #{state.nick}..")