You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should be used. This will modify the appropriate values within the config file, then start your bot with the nickname FooBot and connect it to irc.freenode.net.
17
+
should be used. This will modify the appropriate values within the config file, then start your bot with the nickname FooBot and connect it to irc.freenode.net. These variables are only needed for your first run- after the first use, you can edit the config file directly. Additional configuration options are listed in the following sections.
18
18
19
-
These variables are only needed for your first run- after the first use, you can edit the config file directly.
19
+
Please note that, even in daemon mode, the `-i` flag for `docker run` is required.
20
+
21
+
## Environmental Variables
22
+
23
+
### `SERVER`
24
+
25
+
This variable sets the IRC server Eggdrop will connect to. Examples are:
26
+
27
+
```console
28
+
-e SERVER=just.a.normal.server
29
+
-e SERVER=you.need.to.change.this:6667
30
+
-e SERVER=another.example.com:7000:password
31
+
-e SERVER=[2001:db8:618:5c0:263::]:6669:password
32
+
-e SERVER=ssl.example.net:+6697
33
+
```
34
+
35
+
Only one server can be specified via an environmental variable. The + denotes an SSL-enabled port. After the first run, it is advised to edit the eggdrop config directly to add additional servers (see Long-term Persistence below).
36
+
37
+
### `NICK`
38
+
39
+
This variable sets the nickname used by eggdrop. After the first use, you should change it by editing the eggdrop config directly (see Long-term Persistence below).
20
40
21
41
## Long-term Persistence
22
42
@@ -26,15 +46,23 @@ After running the eggdrop container for the first time, the configuration file,
Please note that, even in daemon mode, the `-i` flag for `docker run` is required.
49
+
If you provide your own config file, specify it as the argument to the docker container:
50
+
51
+
```console
52
+
$ docker run -i -v /path/to/eggdrop/files:/home/eggdrop/eggdrop/data -d eggdrop mybot.conf
53
+
```
54
+
55
+
Any config file used with docker MUST end in .conf, such as eggdrop.conf or mybot.conf
30
56
31
57
## Adding scripts
32
58
33
-
An easy way to add scripts would be to create a scripts directory on the host and mount it to `/home/eggdrop/eggdrop/data`. This would be accomplished by adding an option similar to
59
+
An easy way to add scripts would be to create a scripts directory on the host and mount it to `/home/eggdrop/eggdrop/scripts` (or the path of your choosing). This would be accomplished by adding an option similar to
0 commit comments