[XASECO2] Plugin: IRC Bot 0.1.4

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Post Reply
User avatar
TheM
Pit Crew
Pit Crew
Posts: 286
Joined: 25 Feb 2009 16:43
Owned TM-games: TMU(F), TMN(F), TM2
Location: Brabant, Netherlands
Contact:

[XASECO2] Plugin: IRC Bot 0.1.4

Post by TheM » 18 Feb 2012 10:00

This plugin provides you a link between the ManiaPlanet server and your IRC channel on a server.

What it does:
- output the ManiaPlanet chat into the IRC channel
- output the IRC chat into the ManiaPlanet server
- sends a message to the IRC chat when someone joins or leaves
- shows the TOP 5 at the end of the race in the IRC chat

For more information and downloadlink: http://mp.klaversma.eu/plugins/irc

If you have any bugs, suggestions or anything else about this plugin, don't hesitate to post a reply in this topic.

Image
Output in ManiaPlanet
Image
Output in IRC
Last edited by TheM on 21 Feb 2012 10:25, edited 4 times in total.

User avatar
TheM
Pit Crew
Pit Crew
Posts: 286
Joined: 25 Feb 2009 16:43
Owned TM-games: TMU(F), TMN(F), TM2
Location: Brabant, Netherlands
Contact:

Re: [XASECO2] Plugin: IRC Bot 0.1.1

Post by TheM » 18 Feb 2012 11:30

v0.1.1 - Functionality update
+ "Third-party Plugins UpToDate" functionality added

Check my site for more information.
Last edited by TheM on 20 Feb 2012 19:42, edited 1 time in total.

User avatar
TheM
Pit Crew
Pit Crew
Posts: 286
Joined: 25 Feb 2009 16:43
Owned TM-games: TMU(F), TMN(F), TM2
Location: Brabant, Netherlands
Contact:

Re: [XASECO2] Plugin: IRC Bot 0.1.2

Post by TheM » 18 Feb 2012 12:03

v0.1.2 - Bugfix update
- Wrong use of XML parser caused authentication to be failing

Check my site for more information.

sidekix
pedestrian
pedestrian
Posts: 6
Joined: 24 Sep 2010 12:48
Owned TM-games: TMU, TM²

Re: [XASECO2] Plugin: IRC Bot 0.1.2

Post by sidekix » 20 Feb 2012 23:30

Nice Plugin :gobananas: ,
plz add:
InspIRCD support
ZNC (BNC) support

InspIRCD connect error:
:Karlsruhe.De.Eu.Staff-Chat.net NOTICE Auth :*** Looking up your hostname...
:Karlsruhe.De.Eu.Staff-Chat.net NOTICE Auth :*** Found your hostname (staff-chat.net) -- cached
PING :RIw~n}vae`
:Karlsruhe.De.Eu.Staff-Chat.net NOTICE TM2Bot :*** If you are having problems connecting due to ping timeouts, please type /quote PONG RIw~n}vae` or /raw PONG RIw~n}vae` now.
ERROR :Closing link: (tm2@staff-chat.net) [Registration timeout]
ZNC serverauth:
:irc.znc.in NOTICE AUTH :*** You need to send your password. Try /quote PASS <username>:<password>

thx

User avatar
TheM
Pit Crew
Pit Crew
Posts: 286
Joined: 25 Feb 2009 16:43
Owned TM-games: TMU(F), TMN(F), TM2
Location: Brabant, Netherlands
Contact:

Re: [XASECO2] Plugin: IRC Bot 0.1.2

Post by TheM » 21 Feb 2012 08:23

First of all, thanks for trying my plugin :)
Second: this plugin does support InspIRCd, since mine testserver is running that...
--> you're sure you filled in everything correctly in irc.xml ?
Third: i'll have a look on BNC, I'm using it myself too... maybe the bot can work :P

sidekix
pedestrian
pedestrian
Posts: 6
Joined: 24 Sep 2010 12:48
Owned TM-games: TMU, TM²

Re: [XASECO2] Plugin: IRC Bot 0.1.2

Post by sidekix » 21 Feb 2012 09:16

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<settings>
    <server>
        <!-- IP or domainname of the IRC server -->
        <host>irc.staff-chat.net</host>
        <!-- port of the IRC server -->
        <port>6667</port>
        <!-- channel in which the bot should be in -->
        <channel>#TM2IRC</channel>
    </server>

    <user>
        <!-- name shown in whois -->
        <realname>TM2 IRC Bot</realname>
        <!-- the nickname of the bot -->
        <nickname>TM2Bot</nickname>
        <!-- the ident of the bot -->
        <ident>tm2</ident>

        <authentication>
            <!-- way of authentication (NickServ is only supported at the moment -->
            <method>nickserv</method>
            <!-- authentication password -->
            <password>mypass</password>
        </authentication>
    </user>

    <!-- length of IRC messages: short or long -->
    <messagelength>long</messagelength>
</settings>
I downloaded the plugin again, irc.xml processed as above ...
Same error :grmblz: :grmblz:

Code: Select all

:Karlsruhe.De.Eu.Staff-Chat.net NOTICE Auth :*** Looking up your hostname...
:Karlsruhe.De.Eu.Staff-Chat.net NOTICE Auth :*** Found your hostname (staff-chat.net) -- cached
PING :GxiOhZtLhT
:Karlsruhe.De.Eu.Staff-Chat.net NOTICE TM2Bot :*** If you are having problems connecting due to ping timeouts, please type /quote PONG GxiOhZtLhT or /raw PONG GxiOhZtLhT now.
ERROR :Closing link: (tm2@staff-chat.net) [Registration timeout]

ZNC support with the server auth "/quote PASS <username>: <password>" would be cool


What version is your InspIRCd server ?
Your host is Karlsruhe.De.Eu.Staff-Chat.net, running version 2.0 InspIRCd

thanks in advance :pil :lovetm

User avatar
TheM
Pit Crew
Pit Crew
Posts: 286
Joined: 25 Feb 2009 16:43
Owned TM-games: TMU(F), TMN(F), TM2
Location: Brabant, Netherlands
Contact:

Re: [XASECO2] Plugin: IRC Bot 0.1.2

Post by TheM » 21 Feb 2012 09:42

sidekix wrote:What version is your InspIRCd server ?
Your host is Karlsruhe.De.Eu.Staff-Chat.net, running version 2.0 InspIRCd
Your host is smurf.chatcities.nl, running version InspIRCd-2.0
I'll try to find a way to solve this...

User avatar
TheM
Pit Crew
Pit Crew
Posts: 286
Joined: 25 Feb 2009 16:43
Owned TM-games: TMU(F), TMN(F), TM2
Location: Brabant, Netherlands
Contact:

Re: [XASECO2] Plugin: IRC Bot 0.1.4

Post by TheM » 21 Feb 2012 10:10

v0.1.3 - Bugfix/Functionality update - Critical!
- Didn't respond on pings during authentication, causing registration timeouts, fixed (thanks sidekix for reporting)
+ Q (QuakeNet) Authentication added

v0.1.4 - Bugfix update
- Mapname and author weren't shown correctly when messageLength was short

Check my site for more information.

sidekix
pedestrian
pedestrian
Posts: 6
Joined: 24 Sep 2010 12:48
Owned TM-games: TMU, TM²

Re: [XASECO2] Plugin: IRC Bot 0.1.4

Post by sidekix » 22 Feb 2012 16:33

Hi Max, thanks again for your quick help. :1

Can you maybe change the output in the chat ?
There are too many lines in the short output.

You could pack it all in a row but instead start to 3 lines.

e.g. <Botname> [New Track] (Author: NAME) TRACK NAME (Player: 1/20 Spec: 1/5) (like nWotK & W1llas IRCBot)

Image

Your bot has written today in 17,5 hours 1700 lines in the chat :ftw:
That would be something to minimize :thumbsup: :thumbsup:

scunnyutd
pedestrian
pedestrian
Posts: 8
Joined: 04 Jan 2011 16:12
Owned TM-games: TMUF, TM2, SUNRISE

Re: [XASECO2] Plugin: IRC Bot 0.1.4

Post by scunnyutd » 17 Aug 2012 14:47

Hi, Great plugin we have been using it since the initial release.

One question, is it possible to add a rejoin IRC command to the chat? or even better have the plugin auto reconnect on disconnect, perhaps check every 10 or 20 minutes perhaps? It works flawlessly on the same server as our IRC servers but the ones that are hosted elsewhere if the connection is interrupted then the plugin obviously stops.

Thanks

fabisch
pedestrian
pedestrian
Posts: 5
Joined: 12 Mar 2013 18:48
Owned TM-games: TM2S, TM2C, TMU
Contact:

Re: [XASECO2] Plugin: IRC Bot 0.1.4

Post by fabisch » 13 Mar 2013 15:51

There is a little bug in the plugin. After the config file was created and edited it would still join the #randomtmbot channel set in the standard config.

It did not join the channel anymore after we changed the array in line 40

Code: Select all

public $channels = array('#randomtmbot');
to an empty array

Code: Select all

public $channels = array('');
After that change it would not join the #randomtmbot channel anymore.

I have also a suggestion to add an option to the plugin so that it doesnt relay the chat to the server by default but only if you use a command like !msg <message>.

Beside that great work on the plugin.

sidekix
pedestrian
pedestrian
Posts: 6
Joined: 24 Sep 2010 12:48
Owned TM-games: TMU, TM²

Re: [XASECO2] Plugin: IRC Bot 0.1.4

Post by sidekix » 14 Mar 2013 14:18

Hello TheM,
short is not short enough :-)

Code: Select all

       	} elseif($this->config->messageLength == 'short') {
        	//  short is not short enough :-) sidekix
        	//	$this->say('4End of Race');
            //	$this->say(''.stripColors($map['Name']).' by '.stripColors($map['Author']).'');
        	}

Code: Select all

        	if($ranks === false) {
        	//  short is not short enough :-) sidekix
            //	$this->say('Nobody finished the track . . .');
        	}
result

Image

I've noticed another problem when the bot eg because of a time out from IRC server disconnected, he does not come back by itself.
xaseco2 runs without problems.
[PHP Notice] fwrite(): send of 65 bytes failed with errno=32 Brocken pipe on line ...
Is there a possibility that the bot tries to connect itself again if it loses the connection ?

thx

User avatar
TheM
Pit Crew
Pit Crew
Posts: 286
Joined: 25 Feb 2009 16:43
Owned TM-games: TMU(F), TMN(F), TM2
Location: Brabant, Netherlands
Contact:

Re: [XASECO2] Plugin: IRC Bot 0.1.4

Post by TheM » 14 Mar 2013 20:07

Since I haven't used the plugin myself for some time, those problems haven't come up for me (yet).
I'll try to make some time this weekend (or next) to try to fix these problems. Thanks for reporting! :)

fabisch
pedestrian
pedestrian
Posts: 5
Joined: 12 Mar 2013 18:48
Owned TM-games: TM2S, TM2C, TMU
Contact:

Re: [XASECO2] Plugin: IRC Bot 0.1.4

Post by fabisch » 13 Apr 2013 22:01

Hi
sidekix wrote:
[PHP Notice] fwrite(): send of 65 bytes failed with errno=32 Brocken pipe on line ...
I noticed that quite often lately, too.

I also want to "report" that the bot works with MPAseco too but displays no round and map results of course.

Post Reply