2022-11-10 19:41:03 -05:00
|
|
|
# Homing Pigeon
|
2022-11-10 14:40:11 -05:00
|
|
|
|
|
|
|
Relay your discord server to irc via avian carrier.
|
2020-07-16 23:11:18 -04:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2022-11-10 14:51:02 -05:00
|
|
|
you need to configure this with a dev.exs / prod.exs like such
|
2020-07-16 23:11:18 -04:00
|
|
|
```elixir
|
|
|
|
import Config
|
|
|
|
|
2022-11-10 19:41:03 -05:00
|
|
|
config :homingpigeon,
|
2020-07-16 23:11:18 -04:00
|
|
|
channels: [
|
|
|
|
%{ircnetwork: "net1",
|
|
|
|
ircchannel: "#mychannel",
|
|
|
|
discordid: 123456789234}
|
|
|
|
],
|
|
|
|
networks: [
|
|
|
|
%{
|
|
|
|
network: "net1",
|
|
|
|
server: "irc.example.net",
|
|
|
|
pass: "",
|
|
|
|
port: 6697,
|
|
|
|
ssl?: true,
|
|
|
|
nick: "discordirc",
|
|
|
|
user: "discord",
|
|
|
|
name: "Relay bot for my discord"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
config :nostrum,
|
2022-11-10 13:42:45 -05:00
|
|
|
token: "YOUR TOKEN HERE",
|
2020-07-16 23:11:18 -04:00
|
|
|
```
|
|
|
|
|
2022-11-07 21:59:34 -05:00
|
|
|
## Running
|
2022-11-10 14:51:02 -05:00
|
|
|
```shell
|
|
|
|
$ MIX_ENV="prod" mix run --no-halt
|
|
|
|
```
|
|
|
|
|
|
|
|
if you're going to be hacking on it, or want the ability to update without restarting, I recommend you run it in iex.
|
2022-11-07 21:59:34 -05:00
|
|
|
|
|
|
|
```shell
|
|
|
|
$ iex -S mix
|
|
|
|
```
|
|
|
|
|
2022-11-10 14:51:02 -05:00
|
|
|
to update your bot while running in iex just type `recompile`.
|
2020-07-16 23:11:18 -04:00
|
|
|
|