|
| Author |
Message |
Cheater Senior Member

Joined: 10 Jun 2005 Posts: 236
  
|
Posted: Mon Jun 13, 2005 6:14 pm Post subject: **NexusBot Commands Needed** |
|
|
Here are some commands that I need. If it is impossible to add them, let me know.
A way for me (master) to have the bot say something to another user (send IM through bot)
***A bot mail type program (people send mail to other people using their sn. You can read the mail through my bot)
A way for me to have the bot have a set first message that he sends after the other person sends their first message (unless it is a command that was sent)
A way to make a file that pretty much says:
If user says: XXXXXX
then
bot replies with: YYYYYYY
I am new to all this bot stuff, so if you could please explain in as much detail how to set up the command that would be great (comments in the coding also help)
Remember...NexusBot
***I figured out what to do, just need to make it
Last edited by Cheater on Tue Jun 14, 2005 1:05 pm; edited 2 times in total |
|
| Back to top |
|
 |
JTW God Like

Joined: 07 Mar 2004 Posts: 582 Location: Maidstone
  votes: 4
|
Posted: Tue Jun 14, 2005 1:25 am Post subject: |
|
|
| Quote: | | A way for me (master) to have the bot say something to another user (send IM through bot) |
The msn.pm has a function for this i belive it is called "call"
| Quote: | | A bot mail type program (people send mail to other people using their sn. You can read the mail through my bot) |
When person X sends a message to person Y you would open persons Y inbox print the message and say that person x sent it then close it. It is the same for person y Just reverse |
|
| Back to top |
|
 |
JTW God Like

Joined: 07 Mar 2004 Posts: 582 Location: Maidstone
  votes: 4
|
Posted: Tue Jun 14, 2005 1:27 am Post subject: |
|
|
opps sorry Double post
Can a moderator please delete this |
|
| Back to top |
|
 |
Cheater Senior Member

Joined: 10 Jun 2005 Posts: 236
  
|
Posted: Tue Jun 14, 2005 12:00 pm Post subject: |
|
|
| JTW wrote: | | Quote: | | A way for me (master) to have the bot say something to another user (send IM through bot) |
The msn.pm has a function for this i belive it is called "call" |
Too bad I use AIM. And for the mail thing, I figured out how to do it. Now, I just need to make the coding. |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Tue Jun 14, 2005 2:18 pm Post subject: Re: **NexusBot Commands Needed** |
|
|
| Cheater wrote: | | A way for me (master) to have the bot say something to another user (send IM through bot) |
So for AIM you'd just use $self->send_im. Check the source of the other botmaster-only commands to see how it enforces the botmaster-onlyness of the command. And then you can get the screenname and message from the user's $msg (hint: use split and check if $message is defined), and then just $self->send_im ($screenname, $message) |
|
| Back to top |
|
 |
|