Skip to content

Commit 4c334e9

Browse files
committed
Update README.
1 parent a188203 commit 4c334e9

File tree

1 file changed

+85
-71
lines changed

1 file changed

+85
-71
lines changed

README.md

+85-71
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
12
IRC Mod for Minetest
23
====================
34

45
Introduction
56
------------
7+
68
This mod is just a glue between IRC and Minetest. It provides two-way
79
communication between the in-game chat, and an arbitrary IRC channel.
810

9-
The forum topic is at https://forum.minetest.net/viewtopic.php?f=11&t=3905
11+
The forum topic is [here][forum].
12+
13+
[forum]: https://forum.minetest.net/viewtopic.php?f=11&t=3905
1014

1115

1216
Installing
@@ -17,14 +21,14 @@ Quick one line install for Linux:
1721
cd <Mods directory> && git clone --recursive https://github.com/minetest-mods/irc.git
1822

1923
Please change `<Mods directory>` to fit your installation of Minetest.
20-
For more information, see [the wiki](http://wiki.minetest.net/Installing_mods).
24+
For more information, see [the wiki][wiki].
2125

2226
The IRC mod's git repository uses submodules, therefore you will have to run
2327
`git submodule init` when first installing the mod (unless you used
2428
`--recursive` as above), and `git submodule update` every time that a submodule
25-
is updated. These steps can be combined into `git submodule update --init`.
29+
is updated. These steps can be combined into `git submodule update --init`.
2630

27-
You'll need to install LuaSocket. You can do so with your package manager on
31+
You'll need to install LuaSocket. You can do so with your package manager on
2832
many distributions, for example:
2933

3034
# # On Arch Linux:
@@ -35,95 +39,100 @@ many distributions, for example:
3539
# luarocks install luasocket
3640

3741
You will also need to add IRC to your trusted mods if you haven't disabled mod
38-
security. Here's an example configuration line:
42+
security. Here's an example configuration line:
3943

4044
secure.trusted_mods = irc
4145

46+
[wiki]: https://wiki.minetest.net/Installing_mods
47+
4248

4349
Settings
4450
--------
51+
4552
All settings are changed in `minetest.conf`. If any of these settings
4653
are not set, the default value is used.
4754

48-
* `irc.server` (string)
49-
The address of the IRC server to connect to.
55+
* `irc.server` (string):
56+
The address of the IRC server to connect to.
57+
58+
* `irc.channel` (string):
59+
The IRC channel to join.
5060

51-
* `irc.channel` (string)
52-
The IRC channel to join.
61+
* `irc.interval` (number, default 2.0):
62+
This prevents the server from flooding. It should be at
63+
least 2.0 but can be higher. After four messages this much
64+
time must pass between folowing messages.
5365

54-
* `irc.interval` (number, default 2.0)
55-
This prevents the server from flooding. It should be at
56-
least 2.0 but can be higher. After four messages this much
57-
time must pass between folowing messages.
66+
* `irc.nick` (string):
67+
Nickname the server uses when it connects to IRC.
5868

59-
* `irc.nick` (string)
60-
Nickname the server uses when it connects to IRC.
69+
* `irc.password` (string, default nil):
70+
Password to use when connecting to the server.
6171

62-
* `irc.password` (string, default nil)
63-
Password to use when connecting to the server.
72+
* `irc.NSPass` (string, default nil):
73+
NickServ password. Don't set this if you use SASL authentication.
6474

65-
* `irc.NSPass` (string, default nil)
66-
NickServ password. Don't set this if you use SASL authentication.
75+
* `irc.sasl.pass` (string, default nil):
76+
SASL password, same as nickserv password.
77+
You should use this instead of NickServ authentication
78+
if the server supports it.
6779

68-
* `irc.sasl.pass` (string, default nil)
69-
SASL password, same as nickserv password.
70-
You should use this instead of NickServ authentication
71-
if the server supports it.
80+
* `irc.sasl.user` (string, default `irc.nick`):
81+
The SASL username. This should normaly be set to your
82+
NickServ account name.
7283

73-
* `irc.sasl.user` (string, default `irc.nick`)
74-
The SASL username. This should normaly be set to your NickServ account name.
84+
* `irc.debug` (boolean, default false):
85+
Whether to output debug information.
7586

76-
* `irc.debug` (boolean, default false)
77-
Whether to output debug information.
87+
* `irc.disable_auto_connect` (boolean, default false):
88+
If false, the bot is connected by default. If true, a player with
89+
the 'irc_admin' privilege has to use the `/irc_connect` command to
90+
connect to the server.
7891

79-
* `irc.disable_auto_connect` (boolean, default false)
80-
If false, the bot is connected by default. If true, a player with
81-
the 'irc_admin' privilege has to use the /irc_connect command to
82-
connect to the server.
92+
* `irc.disable_auto_join` (boolean, default false):
93+
If false, players join the channel automatically upon entering the
94+
game. If true, each user must manually use the `/join` command to
95+
join the channel. In any case, the players may use the `/part`
96+
command to opt-out of being in the channel.
8397

84-
* `irc.disable_auto_join` (boolean, default false)
85-
If false, players join the channel automatically upon entering the
86-
game. If true, each user must manually use the /join command to
87-
join the channel. In any case, the players may use the /part
88-
command to opt-out of being in the channel.
98+
* `irc.send_join_part` (boolean, default true):
99+
Determines whether to send player join and part messages to the channel.
89100

90-
* `irc.send_join_part` (boolean, default true)
91-
Determines whether to send player join and part messages to the channel.
92101

93102
Usage
94103
-----
95104

96105
Once the game is connected to the IRC channel, chatting in-game will send
97-
messages to the channel, and will be visible by anyone. Also, messages sent
106+
messages to the channel, and will be visible by anyone. Also, messages sent
98107
to the channel will be visible in-game.
99108

100-
Messages that begin with `[off]` from in-game or IRC are not sent to the other side.
109+
Messages that begin with `[off]` from in-game or IRC are not sent to the
110+
other side.
101111

102112
This mod also adds a few chat commands:
103113

104-
* `/irc_msg <nick> <message>`
105-
Sends a private message to a IRC user.
114+
* `/irc_msg <nick> <message>`:
115+
Send a private message to a IRC user.
106116

107-
* `/join`
108-
Join the IRC chat.
117+
* `/join`:
118+
Join the IRC chat.
109119

110-
* `/part`
111-
Part the IRC chat.
120+
* `/part`:
121+
Part the IRC chat.
112122

113-
* `/irc_connect`
114-
Connect the bot manually to the IRC network.
123+
* `/irc_connect`:
124+
Connect the bot manually to the IRC network.
115125

116-
* `/irc_disconnect`
117-
Disconnect the bot manually from the IRC network (this does not
118-
shutdown the game).
126+
* `/irc_disconnect`:
127+
Disconnect the bot manually from the IRC network (this does not
128+
shutdown the game).
119129

120-
* `/irc_reconnect`
121-
Equivilant to `/irc_disconnect` followed by `/irc_connect`.
130+
* `/irc_reconnect`:
131+
Equivalent to `/irc_disconnect` followed by `/irc_connect`.
122132

123-
You can also send private messages from IRC to in-game players.
124-
125-
To do so, you must send a private message to the bot (set with
126-
the `irc.nick` option above), in the following format:
133+
You can also send private messages from IRC to in-game players
134+
by sending a private message to the bot (set with the `irc.nick`
135+
option above), in the following format:
127136

128137
@playername message
129138

@@ -132,21 +141,29 @@ a private message from IRC with:
132141

133142
/msg server_nick @mtuser Hello!
134143

135-
To avoid possible misunderstandings (since all in-game players use the
136-
same IRC user to converse with you), the "proxy" user will reject any
137-
private messages that are not in that format, and will send back a
138-
nice reminder as a private message.
144+
The bot also supports some basic commands, which are invoked by saying
145+
the bot name followed by either a colon or a comma and the command, or
146+
sending a private message to it. For example: `ServerBot: help whereis`.
147+
148+
* `help [<command>]`:
149+
Prints help about a command, or a list of supported commands if no
150+
command is given.
151+
152+
* `uptime`:
153+
Prints the server's running time.
139154

140-
The bot also supports some basic commands, which are invoked by sending
141-
a private message to it. Use `!list` to get a list of commands, and
142-
`!help <command>` to get help about a specific command.
155+
* `whereis <player>`:
156+
Prints the coordinates of the given player.
157+
158+
* `players`:
159+
Lists players currently in the server.
143160

144161

145162
Thanks
146163
------
147164

148165
I'd like to thank the users who supported this mod both on the Minetest
149-
Forums and on the #minetest channel. In no particular order:
166+
Forums and on the `#minetest` channel. In no particular order:
150167

151168
0gb.us, ShadowNinja, Shaun/kizeren, RAPHAEL, DARGON, Calinou, Exio,
152169
vortexlabs/mrtux, marveidemanis, marktraceur, jmf/john\_minetest,
@@ -158,10 +175,7 @@ forum topic. Thanks to you all!
158175
License
159176
-------
160177

161-
Copyright © 2012-2013 Diego Martínez <[email protected]>
162-
163-
See LICENSE.txt for licensing information.
164-
165-
The files in the irc directory are part of the LuaIRC project.
166-
See irc/LICENSE.txt for licensing information.
178+
See `LICENSE.txt` for details.
167179

180+
The files in the `irc` directory are part of the LuaIRC project.
181+
See `irc/LICENSE.txt` for details.

0 commit comments

Comments
 (0)