EvilZone

Programming and Scripting => Scripting Languages => : Doddy January 31, 2014, 01:21:57 PM

: [Perl] ClapTrap IRC Bot 0.5
: Doddy January 31, 2014, 01:21:57 PM
Hello I just improve my irc bot called Claptrap (based on the funny robot borderlands), the bot has the following commands:



The video :

- ClapTrap IRC Bot - Examples of use - (http://youtu.be/4Hnq3Gi--9M)

The code is here (http://pastebin.com/wrV7rhZW)
: Re: [Perl] ClapTrap IRC Bot 0.5
: techb January 31, 2014, 03:32:53 PM
I don't do much PHP, so I can't help there, but why not keep the data and code separate? The generic pathing at the beginning is just data. Throw it in a file or DB or something; you seem to use a config file.


Also why not keep IRC and other stuff separated. A bot on IRC is there to relay messages, not scan for SQLI.


Again, I'm not a php person, but even the logging could do with an array a for loop and then eval or something kinda similar.


I do condone you on regex however. I always hated regex and probably always will lol. I know php is a web server and web-of-things kinda deal, but this seems more application specific and a bit less server service driven. Keep the IRC even, but I would see something like this with pretty buttons instead of IRC commands to a bot directly. Anyway, API or something why not a framework?


Good job though. Keep on, and on will be keeping.
: Re: [Perl] ClapTrap IRC Bot 0.5
: Doddy January 31, 2014, 04:37:46 PM
the code is done in perl, not php
: Re: [Perl] ClapTrap IRC Bot 0.5
: l0n3r January 31, 2014, 04:47:38 PM
thats a pretty dope tool  :) ... even though i dont know why you mentioned PHP when its perl
: Re: [Perl] ClapTrap IRC Bot 0.5
: techb January 31, 2014, 05:05:59 PM
I seen a P so who cares? The thought still applies.
: Re: [Perl] ClapTrap IRC Bot 0.5
: Phage January 31, 2014, 10:06:38 PM
Ehm... Why create this as a IRC bot? To me it would do better as a stand alone script? Anyway, I can't really say much since I don't like Perl, so I won't bother reading through the code (not that I would be able to help anyway).