I use Nexusbot, and it keeps saying that that is not a command. It is in my commands>client folder.
First of all, that code has a few too many syntax errors. For one, there's no closing bracket on the subroutine. Also, "print" isn't going to do anything if it's a command, you'll need to return a reply, printing will just do stuff on the DOS window that nobody else will ever see.
And to get it to recognize it as a command, the filename has to have the same name as the subroutine (view.pl)
Gotta love your copy + pasting (#!/usr/bin/perl). Why not take a few minutes and learn perl? _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
If I could find a basic enough tutorial (that talked about perl in relation to bots) I would. All the tutorials I find are either too complex, or not what I need for a bot
There's no tutorials for "Learning Perl in relation to bots" because it would be pointless. If you just learn Perl in general, you can apply it to bots, because bots may use all or none of what Perl is capable of. Things like working with files, directories, split, join, subroutines, return, arrays, scalars, hashes, hashrefs.... you name it, and it's probably useable in a bot in some way.
So, even if you have to stray away from bots for a while to test out some new Perl code you just learned, go ahead and do that, because after you have experience in Perl in general, you'll have the know-how to apply it to your bot.