User Control Panel
Advertisements

HELP US, HELP YOU!

Andromeda Bot
Goto page 1, 2, 3  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Bot Depot Forum Index -> Archived Bots
View unanswered posts
Author Message
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Fri Jan 09, 2004 7:29 am    Post subject: Reply with quote

Okay so here is the template that I have been working on.

Features (in what ever order i remember them):
  • auto reloads commands when they are updated.
  • uses folders like (admin, mod, and public) to set the permissions levels of commands.
  • commands have access to user settings and bot settings.
  • commands are sent only the part after the command char and the command name, so they never need to worry about what $msg contains.
  • the command char can be changed at setup and at any time there after, no code changes needed.
  • user settings and bot settings are saved after any commands are run. so you never need to open a text file agian.
  • commands can return either plain text to signifiy the response to send to the user. or a {Message => "repsonse here", Color => "red"} where you can also include font etc. just like in $self->sendmsg().
  • Brains (more on this below).
  • No globals to confuse anything. all variables are scoped correctly. violaters will be punished!
  • 13 commands included to get you started. Many more not included with this download.
  • on first load the bot requests all needed info.
  • --debug when starting the bot puts it in debug mode (perl andromeda.pl --debug).
  • bot settings, and user settings are saved in files corresponding to the bots file name. allows many individual bots in the same directory with the same brains and commands but different settings.
  • its just easier i think Smile
Brains
After that rambling list of features I would like to explain brains a bit more. For those folk who don't realy care just know that brains can be added to your bot and chosen dynamicaly while the bot is running. Brains are what handle the text that doesn't match a command. So this would be like the blab module or those learning thought.pl's (i hope to get brains of both types up very soon!).

For those more inclined. A brain is a module, not a class, to preserve name space. It has a process command, and a description command.Process handles incoming text, and follows basicaly the exact same code as a regular command. Descrption is used to get a description for when the user is choosing brians.

Setup
  • Unzip these files to an empty directory (c:\bot\ would work just fine)
  • Install MSN.pm and latest SSL updates
  • run andromeda.pl (or whatever you rename it)
  • follow the on screen directions
Notice that NO editing of any files is required to get this bot running.

Good Luck and More Commands on the Way!

_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Sypher
Senior Member
Senior Member


Joined: 01 Jan 2004
Posts: 233
Location: The Netherlands
Reputation: 39.8Reputation: 39.8Reputation: 39.8Reputation: 39.8

PostPosted: Fri Jan 09, 2004 2:01 pm    Post subject: Reply with quote

Thank You Eric, This is very usefull!!

But the only thing I miss is the MSN.PM inside the package (Now he looks into the Perl\Lib folder)

_________________
Sypher
Developer of Codera
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Fri Jan 09, 2004 3:02 pm    Post subject: Reply with quote

You can put the MSN.pm anywhere perl will find it. Including the bots own folder Smile
_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Sypher
Senior Member
Senior Member


Joined: 01 Jan 2004
Posts: 233
Location: The Netherlands
Reputation: 39.8Reputation: 39.8Reputation: 39.8Reputation: 39.8

PostPosted: Fri Jan 09, 2004 3:04 pm    Post subject: Reply with quote

Doesn't look like it:

Quote:
Can't locate MSN.pm in @INC (@INC contains: F:/Perl/lib F:/Perl/site/lib .) at MSN/Bot.pm line 8.



Btw i've found a small bug in 'admins' ..

There you can see only the mods Razz ({mods} -> {admins})

_________________
Sypher
Developer of Codera
Back to top
ultimo
Young One
Young One


Joined: 28 Dec 2003
Posts: 60

Reputation: 29.9Reputation: 29.9Reputation: 29.9

PostPosted: Fri Jan 09, 2004 3:11 pm    Post subject: Reply with quote

hi eric i installed perl and all the updates and i started it up filled in th correct information and it ended and gave me an aplication that needs to be opened with sumin is that right or is there sumin wrong
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Fri Jan 09, 2004 5:11 pm    Post subject: Reply with quote

heh I see you thought of a name Smile

nice work eric B)

and for you who are getting problems not finding msn.pm, all I can say is it worked for me while I was testing. So if it can't read it from the directory you have it you can always but it in your perls lib folder.
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Fri Jan 09, 2004 5:59 pm    Post subject: Reply with quote

QUOTE(ultimo @ Jan 9 2004, 07:11 AM)
hi eric i installed perl and all the updates and i started it up filled in th correct information and it ended and gave me an aplication that needs to be opened with sumin is that right or is there sumin wrong

How in the world am i suppose to guess from that? Did it give you any errors? Did you try it with --debug to see if it gave you any errors? Did you run it from dos, or did you try double clicking the .pl file? These would all eb helpfull things.

_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Fri Jan 09, 2004 6:02 pm    Post subject: Reply with quote

QUOTE(SyPhEr_ @ Jan 9 2004, 07:04 AM)
Doesn't look like it:

Quote:
Can't locate MSN.pm in @INC (@INC contains: F:/Perl/lib F:/Perl/site/lib .) at MSN/Bot.pm line 8.



Btw i've found a small bug in 'admins' ..

There you can see only the mods Razz ({mods} -> {admins})

Thanks for the heads up on the admins part, lol, i changed all the text but not he code.

Where did you put MSN.pm? It wont work on the MSN folder it needs to be in the same folder as adromeda.pl or in your perl directories.

_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Nate
God Like
God Like


Joined: 12 Nov 2003
Posts: 553

Reputation: 41.3Reputation: 41.3Reputation: 41.3Reputation: 41.3

PostPosted: Fri Jan 09, 2004 6:58 pm    Post subject: Reply with quote

I don't quite get what's with the hash thing at the end of your commands... like with the name and description and stuff. What's it do and how's it work?
Back to top
Porto
Senior Member
Senior Member


Joined: 07 Jan 2004
Posts: 152

Reputation: 31.4Reputation: 31.4Reputation: 31.4

PostPosted: Fri Jan 09, 2004 8:05 pm    Post subject: Reply with quote

what do i have to put here

$self->{settings}->{mod} = {map {$_ => 1} split("," , prompt("Enter your bots Mods seperated by , :", join(",", keys %{$self->{settings}->{mod} || {}})))};

and here

$self->{settings}->{CommandChar} = prompt("Enter your bots command char:",$self->{settings}->{CommandChar} || "!");
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Fri Jan 09, 2004 8:19 pm    Post subject: Reply with quote

you dont put anything there, you shouldnt have to edit the bot at all, just run it and it will ask you for those details.

as for the hashs in commands, its for the help command that generates the help replys based on whats in those hashs at the bottom of commands
Back to top
Porto
Senior Member
Senior Member


Joined: 07 Jan 2004
Posts: 152

Reputation: 31.4Reputation: 31.4Reputation: 31.4

PostPosted: Fri Jan 09, 2004 8:42 pm    Post subject: Reply with quote

ahh i see thnq for your help :rolleyes:
Back to top
Porto
Senior Member
Senior Member


Joined: 07 Jan 2004
Posts: 152

Reputation: 31.4Reputation: 31.4Reputation: 31.4

PostPosted: Fri Jan 09, 2004 8:45 pm    Post subject: Reply with quote

hmm but still what do i have to type on those 2 questions (see 3 replays back)??? Sad
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Fri Jan 09, 2004 9:01 pm    Post subject: Reply with quote

You type in the email addresses (the ones they use for msn) of your admins and mods seperated by commas. So if you want yourself to be an admin (recommended) then type your email address there.
_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Micky G
Member
Member


Joined: 30 Dec 2003
Posts: 144

Reputation: 31.5Reputation: 31.5Reputation: 31.5

PostPosted: Sat Jan 10, 2004 11:24 am    Post subject: Reply with quote

Changing Topic but on the same topic!


Are all the commands spcially made for andromeda? e.g the note feature? For can you convert it into another bot, e.g Wired Bots?

If so? How could you convert, there not that much diffrent, have subs e.c.t e.c.t
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Bot Depot Forum Index -> Archived Bots All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 



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