2016-12-09 07:16:10 +01:00
|
|
|
|
2014-05-16 02:09:42 +02:00
|
|
|
IRC Mod for Minetest
|
|
|
|
====================
|
|
|
|
|
|
|
|
Introduction
|
|
|
|
------------
|
2016-12-09 07:16:10 +01:00
|
|
|
|
2014-05-16 02:09:42 +02:00
|
|
|
This mod is just a glue between IRC and Minetest. It provides two-way
|
|
|
|
communication between the in-game chat, and an arbitrary IRC channel.
|
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
The forum topic is [here][forum].
|
|
|
|
|
|
|
|
[forum]: https://forum.minetest.net/viewtopic.php?f=11&t=3905
|
2015-04-03 19:18:38 +02:00
|
|
|
|
2014-05-16 02:09:42 +02:00
|
|
|
|
|
|
|
Installing
|
|
|
|
----------
|
|
|
|
|
2015-04-03 19:18:38 +02:00
|
|
|
Quick one line install for Linux:
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-10-07 02:09:59 +02:00
|
|
|
cd <Mods directory> && git clone --recursive https://github.com/minetest-mods/irc.git
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2015-04-03 19:18:38 +02:00
|
|
|
Please change `<Mods directory>` to fit your installation of Minetest.
|
2016-12-09 07:16:10 +01:00
|
|
|
For more information, see [the wiki][wiki].
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2015-04-03 19:18:38 +02:00
|
|
|
The IRC mod's git repository uses submodules, therefore you will have to run
|
|
|
|
`git submodule init` when first installing the mod (unless you used
|
|
|
|
`--recursive` as above), and `git submodule update` every time that a submodule
|
2016-12-09 07:16:10 +01:00
|
|
|
is updated. These steps can be combined into `git submodule update --init`.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
You'll need to install LuaSocket. You can do so with your package manager on
|
2015-04-03 19:18:38 +02:00
|
|
|
many distributions, for example:
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2015-04-03 19:18:38 +02:00
|
|
|
# # On Arch Linux:
|
2014-05-16 02:09:42 +02:00
|
|
|
# pacman -S lua51-socket
|
2015-04-03 19:18:38 +02:00
|
|
|
# # On Debian/Ubuntu:
|
2016-01-09 21:47:08 +01:00
|
|
|
# # Debian/Ubuntu's LuaSocket packages are broken, so use LuaRocks.
|
|
|
|
# apt-get install luarocks
|
|
|
|
# luarocks install luasocket
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2015-05-17 01:54:24 +02:00
|
|
|
You will also need to add IRC to your trusted mods if you haven't disabled mod
|
2016-12-09 07:16:10 +01:00
|
|
|
security. Here's an example configuration line:
|
2015-05-17 01:54:24 +02:00
|
|
|
|
|
|
|
secure.trusted_mods = irc
|
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
[wiki]: https://wiki.minetest.net/Installing_mods
|
|
|
|
|
2014-05-16 02:09:42 +02:00
|
|
|
|
|
|
|
Settings
|
|
|
|
--------
|
2016-12-09 07:16:10 +01:00
|
|
|
|
2014-05-16 02:09:42 +02:00
|
|
|
All settings are changed in `minetest.conf`. If any of these settings
|
|
|
|
are not set, the default value is used.
|
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `irc.server` (string):
|
|
|
|
The address of the IRC server to connect to.
|
|
|
|
|
|
|
|
* `irc.channel` (string):
|
|
|
|
The IRC channel to join.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `irc.interval` (number, default 2.0):
|
|
|
|
This prevents the server from flooding. It should be at
|
|
|
|
least 2.0 but can be higher. After four messages this much
|
|
|
|
time must pass between folowing messages.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `irc.nick` (string):
|
|
|
|
Nickname the server uses when it connects to IRC.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `irc.password` (string, default nil):
|
|
|
|
Password to use when connecting to the server.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `irc.NSPass` (string, default nil):
|
|
|
|
NickServ password. Don't set this if you use SASL authentication.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `irc.sasl.pass` (string, default nil):
|
|
|
|
SASL password, same as nickserv password.
|
|
|
|
You should use this instead of NickServ authentication
|
|
|
|
if the server supports it.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `irc.sasl.user` (string, default `irc.nick`):
|
|
|
|
The SASL username. This should normaly be set to your
|
|
|
|
NickServ account name.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `irc.debug` (boolean, default false):
|
|
|
|
Whether to output debug information.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `irc.disable_auto_connect` (boolean, default false):
|
|
|
|
If false, the bot is connected by default. If true, a player with
|
|
|
|
the 'irc_admin' privilege has to use the `/irc_connect` command to
|
|
|
|
connect to the server.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `irc.disable_auto_join` (boolean, default false):
|
|
|
|
If false, players join the channel automatically upon entering the
|
|
|
|
game. If true, each user must manually use the `/join` command to
|
|
|
|
join the channel. In any case, the players may use the `/part`
|
|
|
|
command to opt-out of being in the channel.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `irc.send_join_part` (boolean, default true):
|
|
|
|
Determines whether to send player join and part messages to the channel.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
2015-04-03 19:18:38 +02:00
|
|
|
Once the game is connected to the IRC channel, chatting in-game will send
|
2016-12-09 07:16:10 +01:00
|
|
|
messages to the channel, and will be visible by anyone. Also, messages sent
|
2015-04-03 19:18:38 +02:00
|
|
|
to the channel will be visible in-game.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
Messages that begin with `[off]` from in-game or IRC are not sent to the
|
|
|
|
other side.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
|
|
|
This mod also adds a few chat commands:
|
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `/irc_msg <nick> <message>`:
|
|
|
|
Send a private message to a IRC user.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `/join`:
|
|
|
|
Join the IRC chat.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `/part`:
|
|
|
|
Part the IRC chat.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `/irc_connect`:
|
|
|
|
Connect the bot manually to the IRC network.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `/irc_disconnect`:
|
|
|
|
Disconnect the bot manually from the IRC network (this does not
|
|
|
|
shutdown the game).
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `/irc_reconnect`:
|
|
|
|
Equivalent to `/irc_disconnect` followed by `/irc_connect`.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
You can also send private messages from IRC to in-game players
|
|
|
|
by sending a private message to the bot (set with the `irc.nick`
|
|
|
|
option above), in the following format:
|
2014-05-16 02:09:42 +02:00
|
|
|
|
|
|
|
@playername message
|
|
|
|
|
|
|
|
For example, if there's a player named `mtuser`, you can send him/her
|
|
|
|
a private message from IRC with:
|
|
|
|
|
|
|
|
/msg server_nick @mtuser Hello!
|
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
The bot also supports some basic commands, which are invoked by saying
|
|
|
|
the bot name followed by either a colon or a comma and the command, or
|
|
|
|
sending a private message to it. For example: `ServerBot: help whereis`.
|
|
|
|
|
|
|
|
* `help [<command>]`:
|
|
|
|
Prints help about a command, or a list of supported commands if no
|
|
|
|
command is given.
|
|
|
|
|
|
|
|
* `uptime`:
|
|
|
|
Prints the server's running time.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
* `whereis <player>`:
|
|
|
|
Prints the coordinates of the given player.
|
|
|
|
|
|
|
|
* `players`:
|
|
|
|
Lists players currently in the server.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
Thanks
|
|
|
|
------
|
|
|
|
|
|
|
|
I'd like to thank the users who supported this mod both on the Minetest
|
2016-12-09 07:16:10 +01:00
|
|
|
Forums and on the `#minetest` channel. In no particular order:
|
2014-05-16 02:09:42 +02:00
|
|
|
|
|
|
|
0gb.us, ShadowNinja, Shaun/kizeren, RAPHAEL, DARGON, Calinou, Exio,
|
|
|
|
vortexlabs/mrtux, marveidemanis, marktraceur, jmf/john\_minetest,
|
|
|
|
sdzen/Muadtralk, VanessaE, PilzAdam, sfan5, celeron55, KikaRz,
|
|
|
|
OldCoder, RealBadAngel, and all the people who commented in the
|
|
|
|
forum topic. Thanks to you all!
|
|
|
|
|
|
|
|
|
|
|
|
License
|
|
|
|
-------
|
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
See `LICENSE.txt` for details.
|
2014-05-16 02:09:42 +02:00
|
|
|
|
2016-12-09 07:16:10 +01:00
|
|
|
The files in the `irc` directory are part of the LuaIRC project.
|
|
|
|
See `irc/LICENSE.txt` for details.
|