User Control Panel
Advertisements

HELP US, HELP YOU!

Aiden (BETA)

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Promote A Bot or Site
View unanswered posts
Author Message
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Sat Sep 03, 2005 7:56 pm    Post subject: Aiden (BETA) Reply with quote

Aiden is my new bot project. I've quit work on CodyCKS, RiveCKS, and AzulianBot, so I can put much more priority on this bot.

This is a beta version of the bot.

When its bot code is completed it will be released. However, be warned that this code is very plugin-driven, and my released versions will be stripped of all (or most) of the plugins so you won't just instantly have a clone of this bot.

The first thing you may notice about this bot is that it doesn't have any commands. No traditional style of commands anyway. No !menu or !about, those kinds of things. ALL commands on this bot are created using Alpha reply code, so they're plain English without command characters.

For a snippit of its menu code:
Code:
// AiChaos Aiden Project //
///////////////////////////
// Main Menu
// Created: 2:13 PM 9/3/2005

+ home
- {topic=menu}Welcome to <b>home</b>, {<name}! Here's what I can do:\n\n
^ 1. Fun and Games\n
^ 2. Misc.\n\n
^ Type "<b>quit</b>" to exit the menu!

+ menu
@ home

> topic menu
   + 1
   - {topic=random}Fun and Games Menu\n\n
   ^ aol - 101 Uses for an AOL Disc\n
   ^ azulian name - Random Azulian Names\n\n
   ^ Type "<b>home</b>" to go back to the main menu!

   + 2
   - {topic=random}Misc Menu\n\n
   ^ botmaster login - Botmaster-Only!\n\n
   ^ Type "<b>home</b>" to go back to the main menu!

   + quit
   - {topic=random}Leaving the menu. Type "<b>home</b>" at any time to come back to the menu!

   + *
   - {topic=random}Remember, you can type "<b>home</b>" at any time to see what kind of cool stuff I can do!
< topic


Bot Contact Information

The beta bot will only be reachable over AOL Instant Messenger. Its screenname is AidenCKS. When its code is completed I'll promote it again with its full contact information, including MSN Messenger and possibly any other means of contact implemented by then.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Tue Sep 06, 2005 1:34 am    Post subject: Reply with quote

Plain English? Looks more like complex coding to me.
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Tue Sep 06, 2005 3:16 pm    Post subject: Reply with quote

It's plain english in the sense that Visual Basic is plain english. IE, you don't need fuckloads of syntax. I, however, find this incrediably annoying (VB).
_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
alienz
Almost An Agent
Almost An Agent


Joined: 22 Mar 2004
Posts: 1436
Location: Mars
Reputation: 55.7

PostPosted: Tue Sep 06, 2005 6:17 pm    Post subject: Reply with quote

Cheater wrote:
Plain English? Looks more like complex coding to me.


What he means is the COMMANDS are in plain english..DUH! lol

_________________
Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Back to top
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Tue Sep 06, 2005 8:09 pm    Post subject: Reply with quote

I know that. Can't anyone take a joke around here?
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Tue Sep 06, 2005 8:21 pm    Post subject: Reply with quote

I've just completed the MSN portion of the bot. It's using my in-general testing passport right now because AiChaos.com is down so I can't get e-mails through there to get it a new passport.

But the beta part of it's almost over.

As for a sneak peek of how its code is plugin-based:

Listeners
Adding listeners is easy: make a file in the "listeners" folder named after the listener (AIM => AIM.pl) and a folder with the same name ("AIM"). The folder is for its specifically-needed files, handlers. And the source of this exampled AIM.pl is as follows:
Code:
# Listener: AIM

use Net::OSCAR qw(:standard);

{
   name      => 'AIM',
   init      => '$aiden->{bots}->{$sn}->{client} = new Net::OSCAR (capabilities => [ qw(typing_status buddy_icons)]);',
   handlers  => '$aiden->{bots}->{$sn}->{client}->set_callback_%CB% (%SUB%);',
   signon    => '$aiden->{bots}->{$sn}->{client}->signon ($sn,$pw);',
   callbacks => {
      admin_error     => 'aim_admin_error',
      buddy_in        => 'aim_buddy_in',
      buddy_out       => 'aim_buddy_out',
      chat_buddy_in   => 'aim_chat_buddy_in',
      chat_buddy_out  => 'aim_chat_buddy_out',
      chat_closed     => 'aim_chat_closed',
      chat_im_in      => 'aim_chat_im_in',
      chat_invite     => 'aim_chat_invite',
      chat_joined     => 'aim_chat_joined',
      error           => 'aim_error',
      evil            => 'aim_evil',
      im_in           => 'aim_im_in',
      rate_alert      => 'aim_rate_alert',
      signon_done     => 'aim_signon_done',
      buddy_icon_uploaded => 'aim_buddy_icon_uploaded',
   },
};


So adding a new listener is as easy as defining how its init and callback methods are called and then putting the handler files in its own folder. Smile If you don't catch on how it's formatted from reading over that.... I'll probably include a few notes here and there in the released code.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Promote A Bot or Site All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group