[Mod] Internet Relay Chat bridge [irc]

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

[Mod] Internet Relay Chat bridge [irc]

by kaeza » Post

Internet Relay Chat Mod

This mod provides a two-way communication between the in-game chat, and an arbitrary IRC channel.
This is done by connecting a bot to the channel, that acts as a "proxy" for messages.

The code of the actual mod is released under the BSD 2 Clause License (see LICENSE.txt).
Licenses for modules/libraries used are on their respective LICENSE files.

Dependencies: default

Check out our official IRC channel ##mt-irc-mod on Freenode!

Note: Should work fine under *nix, but for Windows it needs some special setup (old alternative).

Important Note: If you intend to run this on a server where non-ASCII characters may be used (e.g. non-english-speaking servers), be sure your environment's language encoding is set to UTF-8. Otherwise, you may see errors about "character conversion failed" or "invalid wstring". Thanks to fireglow for helping sort this out.

By the way, if you want to see a demo of this mod, join #minetest at irc.inchra.net.

Please read the SETTINGS section in the README file for info about how to configure.

Downloads Add-ons:
  • irc_commands by ShadowNinja - Enables running chat commands via IRC.
Thanks for taking your time to read this :)

I'd like to thank the users who allowed to test this in #minetest, and all of those who suggested improvements, and helped me by providing tips (in no particular order):

0gb.us, Shadow/ShadowNinja, Shaun/kizeren, RAPHAEL, DARGON, Calinou, Exio, vortexlabs/mrtux, marveidemanis, marktraceur, jmf/john_minetest, sdzen/Muadtralk, VanessaE, PilzAdam, sfan5, celeron55, KikaRz, RealBadAngel, and all the people who commented in here. Thanks to you all!

(If I forgot to mention someone, I apologize in advance. Please catch me on #minetest and notice me.)
Last edited by kaeza on Wed Aug 21, 2013 03:32, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

I give you my 1000th post!
Congrantulation!
This mod is awesome!

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

Very much appreciated, noble sir!
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
tonyka
Member
Posts: 320
Joined: Sat Jun 16, 2012 04:08
Location: Alicante, España

by tonyka » Post

100% agree with Adam, great job
My mod: [MOD]3D Forniture 1.0
Download: 3DForniture_v_1.0.zip
Page development (European Castilian):
Moviliario 3D (proyecto 3D Forniture)

User avatar
Mito551
Member
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Post

cool. is it lua?

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

tonyka wrote: 100% agree with Adam, great job
gracias tonyka!
Mito551 wrote: cool. is it lua?
Thanks Mito551.

It's part in Lua and part in C.
The low-level sockets interface is in C.
The IRC encapsulation, and the mod itself are in Lua.

I will provide a link to source soon.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

Oh wow, super nice
hello, am program. do language in rust. make computer do. okay i go now.

User avatar
rubenwardy
Moderator
Posts: 6969
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

Amazing!
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

sfan5
Moderator
Posts: 4093
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

This Mo is purely awesome
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
Mito551
Member
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Post

it's amazing! we'll see how well it goes :D

User avatar
InfinityProject
Member
Posts: 1009
Joined: Sat Mar 17, 2012 00:52
Location: World of Infinity, US

by InfinityProject » Post

Will there be support for Windows in the future?

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

InfinityProject wrote: Will there be support for Windows in the future?
Whenever someone with a Windows environment can compile it.

Added link to GitHub (see first post)
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

Josh
Member
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Post

Cool :) is this used to talk to people on IRC while playing?

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

Josh wrote: Cool :) is this used to talk to people on IRC while playing?
Yeah. Both to talk to IRC from within game and to read from IRC channel too.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

Josh
Member
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Post

kaeza wrote:
Josh wrote: Cool :) is this used to talk to people on IRC while playing?
Yeah. Both to talk to IRC from within game and to read from IRC channel too.
Cool!

User avatar
yohoho
Member
Posts: 13
Joined: Tue Nov 27, 2012 17:47

by yohoho » Post

This may seem a little noobish but how to use this mod? I downloaded the master zip from github and I see no "irc" directory to copy over. Do I extract the master zip file and rename that folder irc and copy it? Or must this be compiled somehow first? The "outdated" link looks a lot different than the github master zip.

sfan5
Moderator
Posts: 4093
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

yohoho wrote:This may seem a little noobish but how to use this mod? I downloaded the master zip from github and I see no "irc" directory to copy over. Do I extract the master zip file and rename that folder irc and copy it? Or must this be compiled somehow first? The "outdated" link looks a lot different than the github master zip.
Do you have Windows?
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

Ragnar
Member
Posts: 849
Joined: Thu Oct 25, 2012 15:19
Location: Estonia
Contact:

by Ragnar » Post

OMFG!!!
With this PilzAdam can help me with bugs while im playing :D
Are you saying that I put an abnormal brain into a seven and a half foot long, fifty-four inch wide GORILLA?

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

by GJH105775 » Post

Great, I am a 12.04 user in ubuntu.
Check out my mod xtrablocks, has some different types of marble that you can build with or mine at different depths

I am not here regularly as I just kind of pop in and out. If you want to find me I'll be on quadcopterforum.com helping with multirotor builds and spending other's money haha.

http://i10.photobucket.com/albums/a119/ ... hicons.jpg

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

yohoho wrote:This may seem a little noobish but how to use this mod? I downloaded the master zip from github and I see no "irc" directory to copy over. Do I extract the master zip file and rename that folder irc and copy it? Or must this be compiled somehow first? The "outdated" link looks a lot different than the github master zip.
Well, first things first. The "outdated" link is a precompiled version I used for testing, and it came in a ready to use mod directory. The github "master.zip" contains the source code which you need to compile. I updated both the Linux package and committed some changes to github (see first post).
Windows users will have to compile and test themselves or wait until someone posts a precompiled version, sorry.
GJH105775 wrote: Great, I am a 12.04 user in ubuntu.
Just download the updated Linux version then :)

EDIT: 100TH POST!!!!1!!!one!!!eleven!!!!
Last edited by kaeza on Sat Dec 01, 2012 20:37, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
yohoho
Member
Posts: 13
Joined: Tue Nov 27, 2012 17:47

by yohoho » Post

"Do you have Windows?" No on Linux Mint 13.

"0.1.1 - Linux <-- Latest" 404ed

Still don't know how to "prepare" the github master zip to get it working (not overly familiar with compiling of source code without some instructions).

May I suggest adding to github a file on what is needed to compile the mod?

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

yohoho wrote: "0.1.1 - Linux <-- Latest" 404ed
Sorry, was a typo. It's fixed now.
yohoho wrote: Still don't know how to "prepare" the github master zip to get it working (not overly familiar with compiling of source code without some instructions).
Catch me in IRC if you can, and I may be able to help you. Thanks.
Last edited by kaeza on Sat Dec 01, 2012 22:10, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
MirceaKitsune
Member
Posts: 924
Joined: Sat May 21, 2011 22:31
GitHub: MirceaKitsune
IRC: Taoki
In-game: MirceaKitsune
Location: Romania, Bucharest

by MirceaKitsune » Post

Very nice mod! I completely approve :D

fgr
Member
Posts: 87
Joined: Mon Sep 17, 2012 08:22

by fgr » Post

no real instruction included ... i compiled it, made the irc folder with the package.sh and placed it into the minetest mod folder, edited my irc server settings and channel, but no more instructions are available. Restartet the server and nothing happened.

after placed some ambigious command like /irc the server crashed.

Code: Select all

ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ../mods/irc/init.lua:107: attempt to index global 'player' (a nil value)
ERROR[main]: stack traceback:

In thread 7f1b23cec740:
/build/buildd/minetestc55-0.4.3/src/main.cpp:1741: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD 7f1b23cec740:
#0  int main(int, char**)
how about servers and password? If the server reuquests userpassword, does this mod then currently work? I mean MT server password
Last edited by fgr on Sun Dec 02, 2012 15:30, edited 1 time in total.

User avatar
guilleelcapoextra
Member
Posts: 70
Joined: Sat Oct 13, 2012 23:49
Location: uruguay
Contact:

by guilleelcapoextra » Post

but only good for the Linux version tanvien ubuntu or windows used for community

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests