3.2 to 3.5 • Updated AIM handlers. $chaos->{$sn}->{current_user}->{in_chat} will be 1 if the user is in the chat talking to the bot, or 0 if normal IM. Also, $chaos->{$sn}->{current_user}->{chat} will be the $chat object for use elsewhere in the bot. • Made some updates to the GUI. Now it should be able to run more smoothly without being as likely to freeze or lag too horribly. Also, I've added a "Bot Data" wizard so you can add, remove, and edit your bots' files from the GUI itself! • Updated the !perl command so you are able to use $msn and $chat instead of typing out the full hash paths to those variables. • Finally got around to creating a !shop command. There is also !donate and !info that have to do with points too. • Made an update to the ChaosML Brain. Now the tag should work correctly (the usage is slightly difference, [s]click here for details...[/s]) • Added a "settings" folder. Similar to config, except files in there are require'd and executed right away (good for setting hashref variables from the very beginning). • Timestamp customization. You can make the bot log times in the format of "Wednesday, August 18 2004 @ 9:21:53 PM" instead of the standard localtime. Customize the format in ./settings/timeformat.pl
So... I added a "Bot Data" wizard to the GUI, so you can add, edit, and remove your bots' files from the GUI. It makes it easy (for me) to generate sample bots now, all I have to do is click "Add Bot", type in a name for the file, and click the listener and it generates a sample template. For a screenshot, click here: http://www.aichaos.com/jnaut2.3/botdata.jpg
And, so far it's true that I've fixed the GUI so it runs better (my bot is running on it now, and has been for some time, it's going on 80,000 loops so far). I learned some things from a guy named Matt, he's also making a Tk GUI for his bot (I also learned how to use the tabs too from his code, the Tk examples really sucked)
If you're curious as to what I changed, I changed this:
Code:
$main->after (200, \&loop_bots);
To this:
Code:
$main->update();<br />&loop_bots();
Anyhow... the majority of the changes in this bot are just a couple new nifty features.
And as again, don't reply here with compliments, only with useful posts. You'll make it on my hit list if you don't bother to read this sentence and reply with "Good job!" or something anyway... <_< _________________ Current Site (2008) http://www.cuvou.com/
2- i have filled out the info for my msn and aim bot but wen i run juggernaut.pl it just closes it self?
Those batch files (BAT extension, app with a gear icon) are there for a reason. Run Juggernaut.bat to run your bot, it will keep the window open in case of error.
But first, try this:
Did you remove the sample bot files you aren't going to use? For example, if you don't want to use IRC, make sure the "SampleIRC.txt" file isn't in your bots folder.
Lots of people just never get it even though I write it in several places that the sample files HAVE to go if you don't use or edit them. All the sample files are just that: Samples! They aren't real names, or passwords, they're just there to show you how to set up your own bots.
Joined: 10 Jun 2004 Posts: 560 Location: North West, England
Posted: Thu Aug 19, 2004 6:46 pm Post subject:
Quote:
Did you remove the sample bot files you aren't going to use? For example, if you don't want to use IRC, make sure the "SampleIRC.txt" file isn't in your bots folder.
nice as always lol, dont fink ill bother tho ill wait till nxt releace (hopefuly) i still dont understand how the irc commands work :S
That's okay, I don't know much about IRC either. Which is also why I personally don't run an IRC bot and am not doing the most work on it (it could still use some basic improvements like support for font colors, lol) _________________ Current Site (2008) http://www.cuvou.com/
Is anyone running the IRC side on Juggernaut? And night...were you referring to just using IRC or is there a difference in the way the bot commands are handled? _________________ Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Commands are handled the same on all messengers. Most commands just return a reply, and each messenger knows how to get that reply back to the user (IRC bots must be chatted to through private messages). The only messenger-specific commands are messenger-specific because they do special commands that only work on those messengers (like inviting somebody to the current conversation only works on MSN because only MSN supports that kind of thing).
There aren't any IRC-only commands because I don't do much with IRC, but all other commands that aren't AIM or MSN specific should work on IRC (there may be a problem with multiple lines like in the !menu command, haven't tested it). _________________ Current Site (2008) http://www.cuvou.com/
I made a minor update to the MSN Answer handler. Now when the bot's invited to a conversation with at least one blocked user, it will be able to better accurately determine that the user is blocked (it used to send the entire $client to the isBlocked sub, which includes all user names and commas).
And when one blocked user out of the 3 max. for an invite, it can determine exactly which user is blocked and give a reason about that user's block.
The reason is that, somebody invited my bot into a conversation with him and his bot. The bot's name was listed first, so the isBlocked handler returned true for having "bot" in the "name" part of the e-mail (which, in this case, was two e-mails combined), and then the human was wondering who blocked him because the bot included both e-mails in the blocked message.
Here's a log from when the bot's invited with a blocked user:
Quote:
[cody@aichaos.com] One of you are blocked from chatting with me, and I will not remain in this conversation. The block description is as follows:
Well you're just weird like that. Did you download the file or copy the code? I haven't touched my bot's copy of the file since I uploaded it and my bot works fine (I've seen people test it and it didn't crash )
What about an error message? _________________ Current Site (2008) http://www.cuvou.com/
Tyler, I'd expect you of all people to know how to make it not close (hint: use a batch file with the pause command...). Even if you want Perl to PURPOSELY close itself, the DOS window will not let it. So use DOS, smart one. _________________ Current Site (2008) http://www.cuvou.com/