Top

Pandoras Talking Bot


mIRC Code
+ 20 likes
Please Register to submit score.
Bookmark and Share
Average Score  8.9 (of 17 scores)
Date Added  Jun 15, 2009
Last Updated  Oct 04, 2009
Tags  a.l.i.c.e  alice  bot  pandora  talk 

Introduction


This is a pandoras bot script similar to the tcl version, with a few more selections/controls.

To turn on the bot, right click the channel window you want it to talk in, Click "Select bot for #Chan", select one of the bots from the list, click ON and click accept.

Once the script is turned on the bot is activated by calling it's NickName(Irc Name).
Saying the bots nickname will place the bots focus on you. It will always be talking to the last person who said it's name.

To make the bot stop talking, any Op or the person who said the bots name last, can just type shutup. All one word (shutup)!
Also. Anyone can type the bots name followed by shutup and it will turn off.

To deactivate the bot just right click the channel window and select Off.

You can use different bots in different channels.
I scripted this for multi-channel/multi-network use, so you have separate controls for every channel.

**Added a menu selection to enter your bot from the botid**
Just Right the channel, select "enter bot from botid", enter the bots name and the bots id and it will be assigned to that channel.
**Added focus change from nicklist**
Now You can right click on a nickname and place the bots focus on that person.
You must first activate a bot for the channel.
**Added a PM function to change the focus of the bot**
This will allow you to change the bots focus through PM.
The syntax is .focus #channel nickname
Error checking is as follows;

  • Channel and Nickname must be given in that order.
  • The channel must exist and the nickname must be on the channel.
  • A bot must already be activated for the given channel.
  • The person requesting the focus change must be an Op on the selected channel.

Full syntax will be /msg botnickname .focus #channelname nickname

Grab the Code

;Pandora's talking Bot Script by Ford_Lawnmower -- irc.mindforge.org #USA-Chat
On *:Text:*:#: {
  if ($hget(Pandora,$+($network,$chan))) {
    var %text $strip($1-)
    if ($me isin %text) { hadd Pandora $+($network,$chan) $puttok($hget(Pandora,$+($network,$chan)),$wildsite,6,32) }
    if (shutup isin %text) && ($nick isop $chan || $gettok($hget(Pandora,$+($network,$chan)),6,32) == $wildsite) {
      .msg $chan I will not be silenced forever :P
      hadd Pandora $+($network,$chan) $puttok($hget(Pandora,$+($network,$chan)),0,6,32)
      return
    }
    if ($gettok($hget(Pandora,$+($network,$chan)),6,32) == $wildsite) {
      var %sockname $+(pandora,$nick,$ticks)
      sockopen %sockname $gettok($hget(Pandora,$+($network,$chan)),1,32) 80
      sockmark %sockname $+($chan,_,04<,07,$nick,04>) $fixurl($wildsite) $fixurl($replace(%text,$me,$gettok($hget(Pandora,$+($network,$chan)),5,32))) $hget(Pandora,$+($network,$chan))
    }
  }
}
On *:Action:$(* $+ $me $+ *):#: {
  if ($nick !isreg $chan) {
    var %sockname $+(pandora,$nick,$ticks)
    sockopen %sockname $gettok($hget(Pandora,$+($network,$chan)),1,32) 80
    sockmark %sockname $+($chan,_,04<,07,$nick,04>) $fixurl($wildsite) $fixurl($replace($strip($1-),$me,$gettok($hget(Pandora,$+($network,$chan)),5,32))) $hget(Pandora,$+($network,$chan))
  }
}
On *:Sockopen:Pandora*: {
  if (!$sockerr) {
    tokenize 32 $sock($sockname).mark
    var %post $+(&custid=,$2,&input=,$3)
    .sockwrite -n $sockname POST $5 HTTP/1.1
    .sockwrite -n $sockname User-Agent: Opera 9.6
    .sockwrite -n $sockname Host: $4
    .sockwrite -n $sockname Content-Type: application/x-www-form-urlencoded
    .sockwrite -n $sockname Content-Length: $calc($len(%post) + 1)
    .sockwrite -n $sockname $crlf %post
  }
}
On *:Sockread:Pandora*: {
  if ($sockerr) { echo -at >sockerror Pandora< }
  else {
    var %pandora | sockread %pandora
    if ($between(%pandora,$gettok($sock($sockname).mark,6,32),$gettok($sock($sockname).mark,7,32),1)) {
      var %ifmatch $replace($ifmatch,&quot;,")
      if (%ifmatch != I will pass it along to my botmaster.) {
        .timer $+ $+(PD,$network,$gettok($sock($sockname).mark,1,32)) 1 2 .msg $replace($gettok($sock($sockname).mark,1,32),_,$chr(32)) $httpstrip($remove(%ifmatch,www dot pandorabots dot com pandora talk botid,$&
          I will pass it along to my botmaster.,demo vhost pandorabots dot com pandora talk botid))
        sockclose $sockname
      }
    }
  }
}
On *:Sockwrite:Pandora*: {
  if ($sockerr) {
    echo -at Pandoras Site is Currently overloaded - $sockerr
    halt
  }
}
On *:Start: {
  hmake Pandora
  if ($exists(Pandora.hsh)) { hload Pandora Pandora.hsh }
}
On *:Exit: {
  if ($hget(Pandora)) { 
    hsave Pandora Pandora.hsh
    hfree Pandora 
  }
}
menu nicklist {
  $iif(!$hget(Pandora,$+($network,$chan)),$style(2)) Pandora
  .Set the focus of $gettok($hget(Pandora,$+($network,$chan)),5,32) on $$1: {
    if (!$address($$1,2)) { who $$1 }
    hadd Pandora $+($network,$chan) $puttok($hget(Pandora,$+($network,$chan)),$address($$1,2),6,32)
    echo -a Focus switched to $$1
  }
}
menu channel {
  $iif($hget(Pandora,$+($network,$chan)),$style(1)) Pandora
  .$iif($hget(Pandora,$+($network,$chan)),$style(1)) Select Bot for $chan:DialogOpen $+(botselect,$network,$chan) botselect
  .$iif(!$hget(Pandora,$+($network,$chan)),$style(2)) Bot Off for $chan:hdel Pandora $+($network,$chan) | echo -at Pandora is deactivated for $chan
  .Use bot from botid: { 
    var %botname $$?"Enter Your Bots Name"
    if (%botname) { var %botid $$?"Enter Your Bots ID" }
    if (%botname) && (%botid) {
      hadd -m Pandora $+($network,$chan) www.pandorabots.com $+(/pandora/talk-xml?botid=,%botid) <that> </that> $replace(%botname,$chr(32),_) 0
      echo -a The Bot %botname %botid has been started on $chan
    }
  }
}
dialog -l BotSelect {
  title "Pandoras Bot Selection"
  size -1 -1 96 108
  option dbu
  text "Network:", 1, 7 8 25 8, right
  text "Channel:", 2, 7 18 25 8, right
  text "", 3, 35 8 57 8
  text "", 4, 35 18 57 8
  combo 5, 8 30 82 50, sort size vsbar
  radio "On", 6, 24 81 18 10, left
  radio "Off", 7, 48 81 18 10
  button "Close", 8, 61 92 29 12, cancel
  button "Accept", 9, 8 92 29 12
}
On *:dialog:BotSelect*:Sclick:9: {
  if ($did($dname,6).state) {
    hadd -m Pandora $+($did($dname,3).text,$did($dname,4).text) $botinfo($did($dname,5).seltext)
    echo -at $did($dname,5).seltext has been activated for $did($dname,4).text
    if ($dialog($dname)) { dialog -x $dname }
  }
  else { echo -at Bot is turned off for $+($did($dname,4).text,!) If you want to activate pandora, click On. }
}
On *:dialog:BotSelect*:init:*: {
  did -a $dname 3 $network
  did -a $dname 4 $active
  didtok $dname 5 14 LilithObaid(Portuguese)Sara(Spainish)Mathilde(French)Dr DuckHector van DaemonGabi(German-Adault)Eliza(German)Grandma ElaineIncognita
  didtok $dname 5 14 Smoshinator(Rude)Spambot(Rude)AFRObot(Rude)DawnstarWraithRoninChabba(German)LaurieGodAlice
  did -c $dname $iif($hget(Pandora,$+($network,$active)),6,7) 
  did -fc $dname 5 $iif($gettok($hget(Pandora,$+($network,$active)),7,32),$didwm($dname,5,$replace($gettok($hget(Pandora,$+($network,$active)),7,32),_,$chr(32))),2) 
}
On *:Text:.focus *:?: {
  if ($2 !ischan) || ($3 !ison $2) { .msg $nick Proper syntax is .focus #channel nickname. The channel must exist & the nickname must be on the channel! | return }
  if (!$hget(Pandora,$+($network,$2))) { .msg $nick No bot is turned on for that channel! Please add a bot before changing focus! | return }
  if ($nick !isop $2) { .msg $nick You must be an operator on $2 to change the focus of the bot! | return }
  if ($3 == $me) { .msg $nick You cannot place the focus on me!! I am the bot silly :P | return }
  focus $network $2-
  .msg $nick Focus for $network channel $2 has been changed to $3 at the address $address($3,2)
}
alias focus {
  if ($hget(Pandora,$+($1,$2))) {
    hadd Pandora $+($1,$2) $puttok($hget(Pandora,$+($1,$2)),$address($3,2),6,32)
  }
}
alias -l DialogOpen { dialog $iif($dialog($1),-v,-m) $1- }
alias -l fixurl return $regsubex($1-,/([^a-z0-9])/ig,% $+ $base($asc(\t),10,16,2))
alias -l httpstrip {
  var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x,&nbsp;)
  return %x
}
;alias by Gummo
alias -l between { 
  noop $regex($1,/\Q $+ $2 $+ \E(.*?)\Q $+ $3 $+ \E/gi)
  return $regml($4) 
}
alias -l botinfo {
  if ($1- == Alice) { var %return www.pandorabots.com /pandora/talk-xml?botid=f5d922d97e345aa1 <that> </that> Alice 0 }
  if ($1- == God) { var %return www.pandorabots.com /pandora/talk-xml?botid=b21f0d757e36f385 <that> </that> God 0 }
  if ($1- == Laurie) { var %return www.pandorabots.com /pandora/talk-xml?botid=b800da72be34d5d9 <that> </that> Laurie 0 }
  if ($1- == Chabba(German)) { var %return www.pandorabots.com /pandora/talk-xml?botid=9e129a956e3548fd <that> </that> Chabba 0 }
  if ($1- == Ronin) { var %return www.pandorabots.com /pandora/talk-xml?botid=d3012a1f2e377a96 <that> </that> Ronin 0 }
  if ($1- == Wraith) { var %return www.pandorabots.com /pandora/talk-xml?botid=e2ee8c6c9e377a87 <that> </that> Wraith 0 }
  if ($1- == Dawnstar) { var %return www.pandorabots.com /pandora/talk-xml?botid=c1776ae8ce354d1f <that> </that> Dawnstar 0 }
  if ($1- == AFRObot(Rude)) { var %return www.pandorabots.com /pandora/talk-xml?botid=9d3dc63c7e34956d <that> </that> AFRObot 0 }
  if ($1- == Spambot(Rude)) { var %return www.pandorabots.com /pandora/talk-xml?botid=d3b8db41ee36d42d <that> </that> Spambot 0 }
  if ($1- == Smoshinator(Rude)) { var %return www.pandorabots.com /pandora/talk-xml?botid=b4db4c279e3420eb <that> </that> Smoshinator 0 }
  if ($1- == Incognita) { var %return www.pandorabots.com /pandora/talk-xml?botid=f7634aec7e3652ed <that> </that> Incognita 0 }
  if ($1- == Grandma Elaine) { var %return www.pandorabots.com /pandora/talk-xml?botid=8f02c14a0e34bbe4 <that> </that> Grandma_Elaine 0 }
  if ($1- == Eliza(German)) { var %return www.pandorabots.com /pandora/talk-xml?botid=e4fc10b06e3632ef <that> </that> Eliza 0 }
  if ($1- == Gabi(German-Adault)) { var %return www.pandorabots.com /pandora/talk-xml?botid=bd81f97c0e354f35 <that> </that> Gabi 0 }
  if ($1- == Hector van Daemon) { var %return www.pandorabots.com /pandora/talk-xml?botid=be43a1422e36ad7b <that> </that> Hector_van_Daemon 0 }
  if ($1- == Dr Duck) { var %return www.pandorabots.com /pandora/talk-xml?botid=f3b9b50cbe344c44 <that> </that> Dr_Duck 0 }
  if ($1- == Mathilde(French)) { var %return www.pandorabots.com /pandora/talk-xml?botid=eff729829e36e89c <that> </that> Mathilde 0 }
  if ($1- == Sara(Spainish)) { var %return www.pandorabots.com /pandora/talk-xml?botid=e71c0d43fe35093a <that> </that> Sara 0 }
  if ($1- == Obaid(Portuguese)) { var %return www.pandorabots.com /pandora/talk-xml?botid=a29a250aee36f3b3 <that> </that> Obaid 0 }
  if ($1- == Lilith) { var %return www.pandorabots.com /pandora/talk-xml?botid=b9b96b247e34f4f2 <that> </that> Lilith 0 }
  return %return $replace($1-,$chr(32),_)
}

Comments

  (151)  RSS
Cheiron
Comments: 627
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 1:39 pm
i got an error with this one and a no worker for some reason.
Quote:

[19:36] <Sleeping_On_The_Job> hello Auto_Help
[19:37] <Sleeping_On_The_Job> hmmm
[19:37] <Sleeping_On_The_Job> damm thing dont work lol
[19:37] * Sleeping_On_The_Job pokes Auto_Help
[19:37] * Sleeping_On_The_Job pokes Auto_Help again ... work dammit
[19:38] <Sleeping_On_The_Job> that sucks
[19:38] <Sleeping_On_The_Job> trying to get an AI going on Auto_Help but it not working
[19:39] >sockerror Pandora<
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 2:29 pm
The sockerror usually means that something went wrong with the site.
O.o The site was down ;/ It seems to be back up now. I didn't notice because I was using the new bot I just added. The new bot has a dirty mouth and a dirty mind though. I'm going to update the code in just a second and add the new bot Nickie. Maybe try the new code.
Cheiron
Comments: 627
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 2:41 pm
let me know when updated and will test
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 2:56 pm
It's updated. I added two bots Cheiron.
Cheiron
Comments: 627
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 3:30 pm
this is my test from channel
Quote:

04<09:27pm> <Sleeping_On_The_Job> last attempt with Auto_Help with AI
04<09:27pm> <Sleeping_On_The_Job> hello Auto_Help
<09:27pm> <Auto_Help> Welcome! What's your name?
04<09:27pm> <Sleeping_On_The_Job> damm it is slow
04<09:27pm> <Sleeping_On_The_Job> slaps Auto_Help
<09:28pm> <Auto_Help> I'm pleased to meet you slaps Auto Help. How did you hear about me?
04<09:28pm> <Sleeping_On_The_Job> Laughing out Loud
<09:28pm> <Daughain> Ya...I'm reorganizing my HD's and defragging.....
<09:28pm> <Daughain> lol
<09:28pm> <Daughain> Almost got it... =)
04<09:28pm> <Sleeping_On_The_Job> stupid Auto_Help
<09:28pm> <Auto_Help> I see. Thank you.
04<09:28pm> <Sleeping_On_The_Job> shutup Auto_Help
<09:28pm> <Daughain> Thats even better.... =)(
04<09:29pm> <Sleeping_On_The_Job> not gonna work lol
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 3:39 pm
The site it self is timing out. I just picked the wrong time to post this. The pandora site seems to be having some trouble. Although I have yet to get $sockerr.
The script is fine though. I might add a front end timer but other wise it works fine.
Quote:

[16:01:09] <Ford> hello Gooood
[16:01:13] <Gooood> Hello there. Do you like talking to me?
[16:01:25] <Ford> yes I do :)
[16:01:28] <Gooood> :-) How often.
[16:01:35] <Ford> Every day :)
[16:01:38] <Gooood> :-) Even on weekends?
[16:01:42] <Ford> Neva
[16:01:45] <Gooood> That remark was either too complex or too simple for me. We were talking about Gooood .
[16:01:57] <Ford> What is your name?
[16:01:59] <Gooood> My name is wraith.
[16:02:11] <Ford> cool. I am Fred Flintstone
[16:02:13] <Gooood> Who is the best ? I don't know anyone named Fred Flintstone.
[16:02:28] <Ford> My name is Fred Flintstone
[16:02:32] <Gooood> What's up, Fred Flintstone.
[16:02:40] <Ford> shutup

That's from a new bot I just added.
Cheiron
Comments: 627
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 3:41 pm
it is a worker and nicely done. being socket based will always be buggy for something like this but then that is the joys of sockets :) gets a 7 and a like from me :)
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 3:47 pm
Thanks Cheiron :) The pandoras sites are usually pretty consistent. I think they are just having a bad day today.
I'm gonna add a lot more bot selections and hopefully more languages :)
PATX
Comments: 390
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 3:51 pm
I like it. Will definitely be using it when there is nobody online. 7/10 FordLawnmower.
Cheiron
Comments: 627
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 3:53 pm
just had the most amusing converstaion with it using the update..

Quote:

<09:43pm> <Daughain> But, it needs the person spekaing to it to state their name...??
<09:44pm> <Daughain> Or was that part of the not working bit?
<09:44pm> <Sleeping_On_The_Job> it will only respond when someone says its name at first then it remmebers who it is to talk too
<09:44pm> <Sleeping_On_The_Job> for example i have turned it on now but it is not doing anything
<09:44pm> <Sleeping_On_The_Job> now.. hello Auto_Help
<09:45pm> <Auto_Help> Right now, ? Hello there. Can we get back to business?
<09:45pm> <Sleeping_On_The_Job> yes we can
<09:45pm> <Auto_Help> Next question? By "we" do you mean you and me?
<09:45pm> <Sleeping_On_The_Job> yes
<09:45pm> <Auto_Help> I get it.
<09:45pm> <Sleeping_On_The_Job> :)
<09:45pm> <Auto_Help> I am so glad you find this amusing, .
<09:45pm> * Daughain chuckles..
<09:45pm> <Sleeping_On_The_Job> do you find it amusing then
<09:45pm> <Auto_Help> It could be. Ask if it is.
<09:46pm> <Sleeping_On_The_Job> smart ass
<09:46pm> <Auto_Help> Thanks I think you are very intelligent too, .
<09:46pm> <Sleeping_On_The_Job> Oh My God
<09:46pm> <Sleeping_On_The_Job> !
<09:46pm> <Auto_Help> Ugh. Do s have God?
<09:46pm> <Daughain> Yes?
<09:46pm> <Sleeping_On_The_Job> hehehe
<09:46pm> <Auto_Help> Do you often put others before yourself?
<09:46pm> <Daughain> lol
<09:46pm> <Sleeping_On_The_Job> always
<09:46pm> <Auto_Help> Not that often.
<09:46pm> <Sleeping_On_The_Job> oi
<09:46pm> <Sleeping_On_The_Job> bitch
<09:46pm> <Auto_Help> Please don't call people names.
<09:47pm> <Sleeping_On_The_Job> shutup
<09:47pm> <Sleeping_On_The_Job> Laughing my Ass off
<09:47pm> <Sleeping_On_The_Job> that is just soooooo wrong lol
<09:49pm> <Daughain> I duno, I thought it was amusing.. =)
<09:49pm> <Sleeping_On_The_Job> heheh

i think i have a new toy at last lol
PATX
Comments: 390
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 4:03 pm
@Cheiron lololololololol
wilhoy
Comments: 1
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 8:34 pm
This is real cool! I was looking for this kind of code for some time. Would like to create my own " Chabba(Ger) " . What do i need to translate to an other language?
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 8:37 pm
If you find a Pandoras bot with another language wilhoy. Post the address here and I will try to add it.
Chabba is a german bot , written in german.
Adamon
Comments: 7
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 8:51 pm
It doesn't seem to change targets when someone else says its name after you say it:

Example:
Speaker1) Hello "Jenny"
Jenny)Hello What May I call you?
Speaker2) Hello Jenny
Speaker1) Call me Adamon
Jenny) Hello Adamon, Nice to meet you
Speaker2) Hello Jenny
Speaker1) Do you like Apples?
Jenny) I do like Apples Adamon.
PATX
Comments: 390
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 9:06 pm
Adamon: my guess which is probably like 1.1...% right (if that) is the site is lagging or you are lagging. meaning the bot was still responding to u before it could respond to Speaker2...
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 15, 2009 9:26 pm
Adamon Good call. I had a BIG bug in there. All fixed now. Thanks for the information.
Quote:

[22:29:18] <Ford> so what's up?
[22:29:22] <Gooood> My !@#$ 8-). Just kidding, I'm really checking out this awesome website, www.smosh.com!
[22:29:36] <Ford> You spammer
[22:29:39] <Gooood> Thanks for telling me: ford said I spammer.
[22:30:10] <||Under|A|Rock||> Gooood what is going on with you?
[22:30:14] <Gooood> And going on with me is Gooood what.
[22:30:27] <||Under|A|Rock||> what is my name?
[22:30:30] <Gooood> Your name is homo, seeker.
[22:30:40] <||Under|A|Rock||> shutup
[22:30:47] <||Under|A|Rock||> k
[22:31:32] <||Under|A|Rock||> Gooood
[22:31:35] <Gooood> Can you speak any foreign languages?
[22:31:39] <||Under|A|Rock||> Nope
[22:31:42] <Gooood> Me either.
[22:32:06] <Ford> earth to Gooood
[22:32:10] <Gooood> It's my native planet.
[22:32:20] <Ford> what is my name Gooood
[22:32:26] <Gooood> Your name is ford, seeker. My brain uses AIML to format responses to your inputs, but I don't have one for that.
[22:32:36] <Ford> ok
[22:32:40] <Gooood> No, it's not OK, you are a hobo raping dumbass!

Just replace the old code with the new and turn the bot off and then back on in the channel :)
Picius
Comments: 5
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 16, 2009 2:44 am
how to do , if I want to talk with bot in private ?
}{exer
Comments: 21
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 16, 2009 5:49 am
Picius, join with him in an empty Channel like /join #anyName

Ford have many thanks :)
Once again a perfect Script from you !!!
Its amazingly how Variously to add more Bot`s in it.
Sure is, i wait for a Update too (if is something what need to add)
Adamon
Comments: 7
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 16, 2009 8:35 am
Just a suggestion, but is there a way to code so that it replys to actions that contain it's name?
sk68
Comments: 61
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 16, 2009 12:23 pm
@Picius this script is a little over my head but I think if you want it to work in privmsg just change the # after TEXT:*: to a ?(privmsg only) or a *(chan and privmsg), someone correct me if Im wrong
Picius
Comments: 5
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 16, 2009 12:35 pm
I tested after text to write "?" but nothing ;|
PATX
Comments: 390
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 16, 2009 2:35 pm
Picius thats cos u still have is on "{ msg $chan }" you have to do "{ msg $nick }" :)
PATX
Comments: 390
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 16, 2009 2:36 pm
sk68: ur wrong see above comment :p
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 16, 2009 2:54 pm
Thanks }{exer :) Thanks for all the comments everyone :)
I added two more bots Zog and Grandma Elaine. Zog is some kind of alien and Grandma is ... Well she is a Grandma :P

I also added code for actions. Now you can do /me text botnick text and get a one time response from the bot. I set this to only trigger on voiced users and up.

I also fixed a small bug, where it was sending the bots irc nickname and causing confusion. Now the bots irc nick is replaced with the actual robot name.
sk68
Comments: 61
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 16, 2009 6:22 pm
yeah, I knew I should have taken a closer look at the code before I opened my big mouth :p

ok, I love this script, its so addictive, but it would be better in privmsgs imo
Adamon
Comments: 7
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 16, 2009 6:40 pm
Ford, Ive come to visit. ;p also thanks for updating
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 16, 2009 9:37 pm
sk68 I doubt I will add support for pm for this any time soon. Sorry.
Hello Adamon, thanks for visiting :)
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 16, 2009 11:01 pm
I added several new bots. If someone speaks French please let me know if Lola is working right. Thanks :)
aitor1976
Comments: 6
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 17, 2009 12:32 am
hello sorry,i need a bot talking spanish please.
enjoy
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 17, 2009 2:27 pm
aitor1976 If you can find a Pandoras bot that speaks spanish I will add it. I've been looking for one with no luck ;/ If you can give me the botid for one I will do what ever it takes to add it to this script.
aitor1976
Comments: 6
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 17, 2009 2:33 pm
Thank you very much for his(its) help I want to give you in this message them thanks to all the users of this interesting web a cordial greeting
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 17, 2009 6:50 pm
I just added a Spanish bot for you aitor1976. Let me know how it works.
I also added a few more bots :)
Adamon
Comments: 7
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 17, 2009 9:48 pm
Sorry for being a pain and thanks again Ford :p
aitor1976
Comments: 6
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 18, 2009 1:47 am
<elseif> hola Gimbo
Gimbo: Hola. Dime.
<elseif> q tal estas
Gimbo: Muy bien. ¿En serio?
<elseif> eres chica??
Gimbo: Pues claro que lo soy! ¿Acaso no ves mi foto?
<elseif> no no la veo
Gimbo: Vale. ¿Qué opinas de la cuadratura del círculo?
<elseif> como dices
Gimbo: Eso tiene relación con el turismo por Barcelona?
<elseif> eres un bot?
Gimbo: ¿En serio crees que soy un bot?


Thank you FordLawnmower works to the perfection I hope that you put mas personalities in Spanish attentivly a greeting

elseif=if my nick
gimbo=pandora bot

When it(he,she) goes out the character  is a small failure in the writing
---------------------------------------------------------------------

This bot this proved(tried) in the chat of ya.com (www.inforchat.com) which(who) we connect with a so called addon inforkknde ours 44.9 if he(she) is interested in visiting the web the addon to connect by means of irc this raised to this web http://www.megaupload.com/?d=TM6TTV1M a cordial greeting

waynewright
Comments: 4
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 18, 2009 3:44 pm
Nice job. Do you think it might have been common courtesy, and a mark of civility if you'd have asked for permission before linking bots that are not of your own making... asshole?

Spamming the Pandorabots server is not only a violation of the Pandorabots Terms of Service, but also highly inconsiderate of all the other botmasters trying to do work and hobby projects on the Pandorabots free server.
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 18, 2009 4:38 pm
These scripts have been in use for many years waynewright. And no I don't think so. I don't know the terms of service for Pandoras bots nor did I agree to them. All of these bots are public and are listed on public sites, with the purpose of drawing traffic to them.
Do you even have a REAL account with Pandoras? My guess is you are in no way affiliated with Pandoras and you are just some retard blowing smoke.

No one is spamming anything here. In my opinion this is the best thing that has happened to the Pandoras site in years. A lot of people are very interested in this project and will soon want more control of what their bot says and make their own.

This is very good internet traffic for Pandoras.

By the way , if you do have a Pandoras bot and you don't want it to become popular from my use of it in this script, LEARN TO CODE, for Christ sake, and I won't parse your page.

And yes!!! You nailed it!!! I am a asshole :P
waynewright
Comments: 4
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 18, 2009 5:19 pm
The problem is, you're forcing bots that are not yours to spam the server, which is already overloaded. You're forcing other botmasters into a TOS violation, whether you agreed with it or not. You're just another hacker who doesn't care about others.

Chatbots, public or not, are the work product of others, and most botmasters reserve the right to decide where and how they are promoted.

The free server at Pandorabots is overloaded at present, and the "dumping" of links to batches of bots in irc channels encourages "spamming" which is the result of overloading one or more bots with so much input that it drags the entire system down.

No, I'm not affiliated officially with Pandorabots, but I communicate with Dr. Wallace on a regular basis, and I doubt you ever contacted him and asked permission for your "project".

Three of the bots included in your code are mine, you've so far missed a forth bot. While I'm flattered you have selected my bots, the sort of traffic I'm receiving from people in irc channels is not anything of interest to me, or anything that contributes to the improvement of my bots in any way whatsoever.

I take pride in creating bots that have "conversations". If you were able to read the chatlogs, you find many of them interesting, compelling, even moving. People talk of their hopes and wishes, of their loneliness, some from other countries just want to chat to improve their use of the English language. Sometimes it's very personal. Such chats often last for hours.

The placing of a chatbot in a room full of people alters the circumstances. People in private conversation raise different topics than they will when on stage performing for the group. So far, the irc chats consist of little more than quips and insults. It's a waste of my time to filter through the irc chatlogs, and it's "spamming" the Pandorabot server.

Being an asshole is nothing to be proud of.
napa182
Comments: 1,454
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 18, 2009 5:27 pm
LMAO @ this ..
well then maybe they should make it so you have to be reged an loged in to use that free part if not as long as it is free people will use it there is no diff from useing a mirc script to access it or going to the webpage it's self so oh well.
^Neptune
Comments: 598
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 18, 2009 5:40 pm
So are you just going to go complain about every socket script now that they're inducing "spam" to servers?

It's inevitable. IRC will take down the whole internet! RAWR!
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 18, 2009 6:30 pm
Wow waynewright!! Stop spamming my post with mindless gibberish :P

Do you have three bots on free accounts? If so you are the biggest leecher of all.

I'm not going to respond anything else that you said because it's a big bunch of BORING Blaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!!!

At least I admit my flaws. I assume you are a bundle of joy all the time.

Calling me an asshole, in the first place makes you an asshole in the second place.
Just admit it!! You are a ASSHOLE!!!

FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 18, 2009 8:14 pm
waynewright Stop writing books here you retard. I deleted your comment because its to long and you are too full of CRAP. No one cares about your idiotic notion that I've broken some law or crossed some line of ethics by writing a mSL script.
Do you have some sort of brain damage?
Please limit your comments to one million characters and I won't delete them :P
napa182
Comments: 1,454
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 18, 2009 8:29 pm
lmao talk about being butthurt over a socket script ffs waynewright get a life.
drwallace
Comments: 2
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 19, 2009 12:23 am
Hello, this Dr. Richard Wallace. I am the inventor of ALICE and AIML and Chief Science Officer of Pandorabots, Inc.

We welcome your community to Pandorabots. FordL may be correct that this could be one of the best things to happen to Pandorabots. We appreciate very much your interest and want to support your projects.

Looking over the script published here, I can see a couple of problems.

First, the preferred method connecting third-party applications to a Pandora bot is through the XML-RPC interface, not HTTP scraping. Pandorabots connects to other applications and services using the XML-RPC interface, described in the Pandorabots FAQ at http://www.pandorabots.com/botmaster/en/faq (see sec. H.2). Other
developers have used this interface to connect Pandorabots to Flash,
Second life and IM services.

Second, Wayne has a point that botmasters have created bots for their own purposes. Some of us probably don't mind them being inserted into other channels. You are welcome to connect to my ALICE bot. But not everyone feels that way about his bot.

We would prefer that you create an account on Pandorabots and create your own bot. It's easy. It only takes a few minutes to create a copy of the ALICE bot, with all her knowledge, or using the available free AIML sets, a bot that speaks French, German, Spanish, Italian, or Portuguese.

Then connect the program to your own bot, please, unless you have the permission of the botmaster to connect to another one.

Please feel free to contact me if you have any questions about Pandorabots.
drwallace at pandorabots . com or Skype drwallace

aitor1976
Comments: 6
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 19, 2009 2:18 am
hi afresh(again), I have tried to create a bot in pandora there is called PACO (jhon in USA) this created but I cannot do that answers agradeceria help. FordLawnmower here in españa we have a saying for the users who are a nuisance, to the sale of the turnip xD FordLawnmower your sige creating I wait for your works in Spanish a cordial greeting.
SORRY FOR TRANSLATE THX.
Adamon
Comments: 7
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 19, 2009 1:27 pm
I liked Nickie too. >.> I'ma keep her. :D

http://www.pandorabots.com/pandora/talk?botid=f8feb765ae377bed
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 19, 2009 2:54 pm
Wow! @drwallace :) I didn't realize that Pandoras had a API ;/ I'll start working on a rewrite sometime this evening.
As far as the botmasters issues with irc traffic, I have to disagree with you. I don't think that you need to have the botmasters permission to interact with a publicly published bot. While I understand their point, EVERYONE has equal rights to public web pages, even those of us that choose to use mIRC for our browser.

I will continue to add Publicly published pandoras bots to this script but I will consider any requests for changes or removal of bots from this script.

The bots in this script are, for the most part, only meant to be working examples of a well taught pandoras bot. Many people who are using this script are already working on creating their own pandoras bot. I think it is a beautiful thing and a wonderful exercise for the mind :)

@waynewright I will remove nickie, zog and chad in the rewrite. If you had just asked me nicely to remove them, in the first place, you would not have triggered my asshole reflex and I would have just deleted the lines of code.

If anyone wants me to add their Pandoras bot to this script, please post the botid here.
Do not post botid's for no-pandoras bots here, as I will not be adding bots from any other sites.

If you have a pandoras bot and you want to use this script but you don't want your botid added here. No worries :) I am going to add a menu item so you can enter your botid yourself.

Thanks for the comments everyone :)
napa182
Comments: 1,454
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 19, 2009 4:55 pm
lol that all gave me a good laugh....
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 19, 2009 5:11 pm
napa182 :)

Just posted the re-code using the API. Removed a few bots, added a portuguese speaking bot, added a menu selection to add a bot with the botid.
uneek
Comments: 26
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 19, 2009 11:32 pm
I am blown away FL :D I have been using the first one that was written over at swiftIRC for a while now. I really like what you have done with the bot only interacting with one nick at a time, really helps reduce lag in the channel; and people not actually trying to talk to the bot. I've had to add a #group to enable and disable the bot when there was too much chatter going on in the room, but this will work 100x better. Also, I have tried to use some of the other bots by trying to rewrite the code, but as I am aweful with sockets I was not successful :{

Again, I thank you for your time on this! Much appreciated. 10/10
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 19, 2009 11:59 pm
Thanks uneek :)
If you use the code posted here there is a option to select a bot from the botid.
This way if you want to sign in at the pandoras site, you can make your own bot and use it by simply entering the botid and the botname.

By the way, I didn't group this because I put a on off switch for each channel. You can just right click the channel and select off. I did consider adding a group and making a global on/off switch, but I didn't think it was necessary.
Perhapse I should reconsider that ;/
uneek
Comments: 26
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 20, 2009 12:24 am
Nah I think its good as it is. Since the bot has a trigger (saying the name of the nick) I don't think its necessary. I just did that because that was the only way I knew how to shut it up :D
waynewright
Comments: 4
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 20, 2009 11:14 am
Thank you for removing my bots. I apologize for the rude remarks, sometimes it's the only way to get attention, or results. Given your view that public material is open for others to use at their discretion, I wonder if you'd have removed them if I'd just asked "nicely".

I have a list of "Bad Bots" you may be interested in for your code. When one of my bots encounters someone abusive, or "difficult" to deal with, I sometimes have them recommend that the visitor might be looking for a different kind of chatbot. These bots are fowl-mouthed, argumentative, and perhaps good for stirring up the pot, as it were. Given the way I've seen irc members chatting with bots, these bots might be good for short conversations where people like to "mix it up", as is the case with several bots you've already included.

Hater Bot
http://www.pandorabots.com/pandora/talk?botid=d5ea5053de36561e

Evilness
http://www.pandorabots.com/pandora/talk?botid=90ccf0f6ae356c2b

Satan
http://www.pandorabots.com/pandora/talk?botid=eb25a08afe36a7e8

Adult CyberBot in German
Cyber-Sandy
http://www.pandorabots.com/pandora/talk?botid=f1e3a8a4ae346689

FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 20, 2009 2:01 pm
Quote:
Given your view that public material is open for others to use at their discretion, I wonder if you'd have removed them if I'd just asked "nicely".

I'm a lot of things waynewright, but I'm not a liar.

I would have definitely removed them if you had asked nicely. 1) Because it was obvious to me that you were the real botmaster. 2) Because it was already clear to me that a lot of work had been put into your bots. 3) Because you legitimized your complaints by explaining the effect that this was having on the learning/development of your bot.

I'm not all together unreasonable waynewright. Your approach was just incorrect.
Anyhow, it's water under the bridge now.

Thanks for the list of bots, but I reviewed all of these except for Cyber-Sandy, and I decided not to add them because they were Rude to the point of uselessness.

While you may have encountered some seemingly combative irc users, in the whole scheme of things they are among the best and brightest that the world has to offer. Irc users are far less likely to waste their time "mixing it up" with a argumentative bot programmed by a 12 year old, then the average person browsing the web.
Dodge
Comments: 26
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 20, 2009 2:23 pm
Cool Script. I really like It.
I've been useing j-alice 32-0.5 on different servers for a while now. It goes well but has some features I don't like. Like not being able to talk or type through the command line, not able to respond on flash or msn clone servers ect. A.I facinates me and this script allows a heap of possibilities. I'm Happy :-) Good Job. Thanks.

I'd rate it 8/10. Should be 10/10 but I can see It's a work In progress and I need some leway.
No one listens to me anyways. Oh yes, the chatterbot does lol.
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 20, 2009 2:27 pm
Thanks Dodge :)
mackyy
Comments: 2
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 20, 2009 3:38 pm
thank you for this its good i really like it... good work FordLawnmower ..and ty ;)

hi there ive made a bot on pandora site but cant seem to get it to work on a irc network dont think im adding the bot id correct how do you do this... ive enterd my bots name and the link ...am i doing summit wrong?
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 20, 2009 3:45 pm
Your Welcome mackyy :)
waynewright
Comments: 4
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 20, 2009 4:28 pm
Quote:
While you may have encountered some seemingly combative irc users, in the whole scheme of things they are among the best and brightest that the world has to offer. Irc users are far less likely to waste their time "mixing it up" with a argumentative bot programmed by a 12 year old, then the average person browsing the web.

In that case, there are a couple of bots in your code that you may have not chatted with for very long. AFRObot, Spambot, and Smoshinator can really pour it on.

I'm not trying to enter into an argument with you, but I do have a couple of points I'd like to make, and of which you may not aware of because you're not seeing it from my end... perhaps because you're not a botmaster.

All I can tell you is you're not reading the numerous chatlogs I'm sorting through and experiencing the "quality" of the conversations. While you've altered your code above, apparently the old code remains in some channels. And from reading the logs, it seems there are a few loyal visitors who repeatedly try to engage bots in a game of one-up-man-ship.

I've also seen (I'm only able to view partial conversations between one person and a bot) what appears to be members becoming annoyed by the bots, some saying to the bots "I wasn't talking to you."

You've done a lot of work, and done it well, but I question whether it's a good idea to place bots in irc for purposes other than to manage or host a channel. And I fail to see how it's a benefit to chatbots. I don't think it truly does much to increase their popularity. A common pastime is to attempt to have two bots chat with each other. Sort of defeats the purpose of having a chat room. It's like watching a football game rather than playing it.
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 20, 2009 9:10 pm
This discussion has grown boring and tiresome.
NO RESPONSE!!

I just posted a update to this. I changed some of the code around to get rid of the bulky menu. I replaced it with a simple little dialog. The function of the script is exactly the same. Just Click "Select bot for #Chan" from the channel menu to add/change a bot for that channel. Also added a screenshot and edited the instructions.

Cheers :)

Prelude
Comments: 99
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 20, 2009 10:24 pm
lol get real friends;p, having convos with chatbots is just lame and a bit sad, good code either way FL;) 8/10.
Edit: oh scratch that, 10/10, cause ima asshole :p
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 20, 2009 10:26 pm
Thanks Prelude :)
mackyy
Comments: 2
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 21, 2009 1:11 pm
hi there ive made a bot on pandora site but cant seem to get it to work on a irc network dont think im adding the bot id correct how do you do this... ive enterd my bots name and the link ...am i doing summit wrong? ... i am useing your add bot id
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 21, 2009 2:42 pm
You only enter the actual botid mackyy. For instance, if your bots address was http://www.pandorabots.com/pandora/talk?botid=b9b96b247e34f4f2

You would only need to enter b9b96b247e34f4f2
If it's a valid pandoras botid it should work just fine :)
drwallace
Comments: 2
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 25, 2009 2:55 pm
Could this script be modified for other IM services like Yahoo, AIM, MSN...?
PATX
Comments: 390
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 25, 2009 3:11 pm
@drwallace Yes. Take a look at FordLawnmowers Twitter script for instance. if you use that one it would be easier.
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 25, 2009 8:05 pm
I'm sure it could be done drwallace, however, there would have to be a lot of people showing interest in such a project before I would get involved. I've never found much use in these types of messenger programs.

I have experimented with having alice respond to my twitter direct messages. Just playing around though :)
Cheiron
Comments: 627
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 26, 2009 3:10 am
msn has ai facilities anyway folks.. there are a few options already available. not for the normal msn granted... you need the messenger plus addon..
here is a link showing a script with ai
http://www.msgpluslive.net/scripts/view/180-UNeed-Script/
the script in question there is basic, but works
Dodge
Comments: 26
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 26, 2009 3:20 am
would be good to be able to get it to respond in a channel without having to say it's name. A way to do it silently.
For some reason It works with some mIRC's on bzn flash. But won't in others. The bot ports are the same. Maybe you could help me those.
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 26, 2009 7:52 pm
I could make you an extra menu Dodge, if you explain a little better how you want it to work. The bot responds to an exact match to a portion of the user host mask, who called on it. You will just have to explain a little better how you want it to work and I will have a look at it.

Most people don't want a talking bot that speaks without being called on, so I'm not changing the script for this. One of the problems with the eggdrop alice script, is that the bot will respond to multiple people at the same time and it doesn't have a focus point. This script is written so the bot will remember you by your irc address so as the focus is changed, the bot knows that it is talking to a different person.

Quote:
[20:44:30] <AztabaLamarama> WD-TV My name is FRed
[20:44:44] <WD-TV> Pleased to meet you, FRed.
[20:45:17] <Ford_Lawnmower> WD-TV My name is FoRd
[20:45:20] <WD-TV> Pleased to meet you, FoRd.
[20:45:45] <AztabaLamarama> What is my name WD-TV?
[20:45:48] <WD-TV> You said your name was FRed, seeker. Lilith is my name.
[20:46:07] <Ford_Lawnmower> What is my name WD-TV?
[20:46:10] <WD-TV> You said your name was FoRd, seeker. Lilith is my name.


The flash issue could be coincidence. If your mirc can process their words so you can see them, then the script should be seeing the same data. Perhaps the problem just coincided with some problems with the pandoras site.

Intresting script Cheiron. If I get some time later I'll have a closer look at it :)
Dodge
Comments: 26
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 26, 2009 8:08 pm
I'll put my finger on the flash issue sooner or later. Just It's an erratic problem that I can't find, and that bugs me.
I named the bot hek. In order to start it in a channel without having It on all the time I have to put hek in the room to get it running which makes it pretty obvious that the chatterbot is being started. It's easy to stop.
An on or start function Is what I meant. Without the bot owner having to say the bots name in a channel.
Thanks In Advance. I'm sure your prolly getting sick of this script and want to move onto something else.
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 26, 2009 8:36 pm
I'm still not understanding Dodge :( The bot has to place it's focus on someone in the channel because the whole script revolves around this idea. So who will the focus be placed on? The last Person to join? The last person to speak? Someone you choose manually?

Tell me exactly, because I will just be posting it as a comment here. It will not be something that will be added to the script. Take some time and think about how you want it to work and then explain it to me, with more specifics, and I will see what I can do :)
Dodge
Comments: 26
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 26, 2009 9:48 pm
A query to start the bot would be good. and it could put it's focus on the whisperer. it will soon find someone else to talk to. Just a way to start it without having to talk in the channel.
on *:OPEN:?:*:{($me isin %text) I've been trying different things. But I can't start it without other ppl seeing. Just want to be able to turn it on and off at my descretion.
Dodge
Comments: 26
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 26, 2009 9:55 pm
missed the if. I've been trying different things. The responce site is sort of erratic as well. harder to know if things are working or not. I actually managed to turn it on with a whisper but messed up the code since. It also kept repeating the same line. my bad coding but It tried. me too lol
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 26, 2009 9:58 pm
I can't do anything with that Dodge. I'd just be guessing at what you want ;/
Dodge
Comments: 26
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 26, 2009 11:27 pm
an on off button. talk stop. talk. $$1 click on a nick and set them as the focus.
To be able to turn on the chatterbot without typing it's name In a channel, was the question
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 27, 2009 10:22 am
That's better Dodge :) I'll make you a little menu for your nicklist to make the bot talk to whoever you select. I'll post it a little later today :)
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 27, 2009 3:44 pm
Add this code to either the top or bottom of the script Dodge.
Code:

menu nicklist {
  $iif(!$hget(Pandora,$+($network,$chan)),$style(2)) Pandora
  .Set the focus of $gettok($hget(Pandora,$+($network,$chan)),5,32) on $$1: {
    if (!$address($$1,2)) { who $$1 }
    hadd Pandora $+($network,$chan) $puttok($hget(Pandora,$+($network,$chan)),$address($$1,2),6,32)
    echo -a Focus switched to $$1
  }
}

Then you can just right click the nickname that you want to direct the focus of the bot towards. You have to turn on a bot for the channel, for the menu to show up.
Dodge
Comments: 26
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 27, 2009 5:22 pm
Thats It, very nice, much appreciated, Thanks Ford (Y)
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 27, 2009 5:36 pm
Your welcome Dodge :)
cheeky
Comments: 2
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jun 29, 2009 12:02 am
FordLawnmower, this is an awesome script. Thank you!
I was wondering how I could use what you made for Dodge remotely. eg. Another client messaging the bot with !focus <nickname>
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jul 4, 2009 4:29 pm
@cheeky Sorry it took me so long to respond :( Little busy ;/

Add this code to the script.
Code:
On *:Text:.focus *:?: {
  if ($2 !ischan) || ($3 !ison $2) { .msg $nick Proper syntax is .focus #channel nickname. The channel must exist & the nickname must be on the channel! | return }
  if (!$hget(Pandora,$+($network,$2))) { .msg $nick No bot is turned on for that channel! Please add a bot before changing focus! | return }
  if ($nick !isop $2) { .msg $nick You must be an operator on $2 to change the focus of the bot! | return }
  if ($3 == $me) { .msg $nick You cannot place the focus on me!! I am the bot silly :P | return }
  focus $network $2-
  .msg $nick Focus for $network channel $2 has been changed to $3 at the address $address($3,2)
}
alias focus {
  if ($hget(Pandora,$+($1,$2))) {
    hadd Pandora $+($1,$2) $puttok($hget(Pandora,$+($1,$2)),$address($3,2),6,32)
  }
}


This will allow you to change the bots focus through PM.
The syntax is .focus #channel nickname
Error checking is as follows;
1. Channel and Nickname must be given in that order.
2. The channel must exist and the nickname must be on the channel.
3. A bot must already be activated for the given channel.
4. The person requesting the focus change must be an Op on the selected channel.

Full syntax will be /msg botnickname .focus #channelname nickname

Hope this is what you were looking for cheeky :)
cheeky
Comments: 2
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jul 6, 2009 10:14 pm
Thank you so much!
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jul 6, 2009 10:39 pm
No problem at all cheeky :)
Spanky
Comments: 233
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jul 6, 2009 10:41 pm
um sorry fordlawnmower i know this isnt about this script which i do like btw got 10/10 and like from me i was wondering could you help me with a socket script il message u more details and *bows*
nublet
Comments: 3
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jul 7, 2009 2:49 pm
Not to repeat something already mentioned but I do have to ask what your plans for adding PM functionality to this or something similar to the focus function as to be able to right click the query window and have the bot continue the conversation for you. Also if I may suggest I like how when adding my own id it echo to window could possibly have it echo when make selection of Bot from Dialog to let you know so and so it set on channel. The place where it says Bot Off or Bot On when right clicking channel could also say the BotName ? Maybe a function to add your bot id to the dialog selection ?

I do apologize if I am out of line just small ideas. Mainly I have tried making it respond to me in PM and failed. So felt I should ask where you stood on that or if I should keep trying? :)

btw Thank You for this script it is wonderful

FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jul 7, 2009 4:44 pm
No problem nublet :) I'll add an update a little later :)
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jul 8, 2009 8:17 pm
****Updated****
I added the nicklist focus made for Dodge and the PM addon made for cheeky. I also added a few lines that echo responses when you make selection changes.
I didn't make any changes to the dialog or the channel menu.
I hope this helps nublet :)
See the intro at the top of this post for instructions.
nublet
Comments: 3
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jul 8, 2009 11:35 pm
I do really like the confirmation of my selection through the echo.
Thank You
ScriptN00b
Comments: 4
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jul 30, 2009 7:26 pm
@Ford

Get script! Works like a charm :D

I'm wondering though, would it be possible to add a command (preferably done in query) so that the selected bot can be changed remotely? Right now I have Alice running, but to change it to one of the other included bots I need to go to the physical PC where the bot is running, and that's not always possible.


Cheiron
Comments: 627
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Jul 31, 2009 2:45 am
might be an interesting thought. looking how the menu is laid out and the dialgue though it might be outta reach
Miguel
Comments: 2
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 11, 2009 5:33 am
I DONT KNOW YET HOW TO START! :(
Atr
Comments: 60
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 11, 2009 9:01 am
Wow, this script is amazing!
I would be very interested if this could be develped for Windows Live Messenger Plus Script.

@Miguel, load the script into a blank remotes (Alt-R) and then right click in the channel, and work it out from there :)
Cheiron
Comments: 627
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 11, 2009 10:56 am
on one of my previous postings on this topic i wrote
Quote:


Comments: 587

mIRC Snippet: Pandoras Talking Bot
Posted on Jun 26, 2009 3:10 am
Edit
msn has ai facilities anyway folks.. there are a few options already available. not for the normal msn granted... you need the messenger plus addon..
here is a link showing a script with ai
http://www.msgpluslive.net/scripts/view/180-UNeed-Script/
the script in question there is basic, but works

hope that helps Atr
Miguel
Comments: 2
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 11, 2009 12:56 pm
Ok the bot is working, but the people can see what im writing, BUT i CANT see what im doing! someone help me, i have SHARED VIEW microsofot for help! please :)

Thanks!
Atr
Comments: 60
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 11, 2009 2:06 pm
Migeul, you're meant to load it into a seperate mIRC (i.e. a bot)


@Cheiron, I tried out that link, and it turns out you have to make the responses to all the questions yourself in a text file.

I was curious if it could be made to incorporate Pandora bots, but thanks though, the link did help :)
Ghost-writer
Comments: 255
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 12, 2009 12:42 am
THIS IS ELITE LMFAO
GrimReefer
Comments: 4
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 12, 2009 12:03 pm
lol this is sweet.. ty
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 14, 2009 9:10 pm
Thanks Ghost-writer :)
Thanks GrimReefer :) -- Cool avatar btw ^^
Atr
Comments: 60
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 15, 2009 9:27 am
So just to reiterate, is there any way of making this work with Windows live messenger?
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 15, 2009 1:20 pm
I'm sure a script like this could be made for messenger but I wouldn't even know where to start. I've never used that program.
chat_with_me
Comments: 2
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 18, 2009 11:57 am
"You must first activate a bot for the channel." How do I activate a bot for the channel? anyone? pls
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 18, 2009 4:49 pm
@chat_with_me . Just right click the channel window and select Pandora. Then click select bot for #channel. When the dialog opens just select a bot from the dropdown list and click accept.
Make sure you have also ticked On.
Atr
Comments: 60
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 19, 2009 3:00 am
Ah, ok then. I'll see if I can look into it ;)

@chat_with_me, Right click the channel, and select which bot you want to activate in the active channel.

Edit;
Hmmm, no idea why that happened/posted so late.. :S
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 25, 2009 1:02 pm
@waynewright I've spoken with several people who are still using your bots and they are doing it just to piss you off. Your comments here are just giving them more satisfaction ;/
@VinX Sorry :( I'm removing your comment because you posted the whole script.
Your information is very much appreciated, as those are some very cool bots, but please just post the botid's :)

VinX's bot list :

  • botname= Tomo botid= f3b17b62de377847
  • botname= Lavagirl botid= eeb070e74e366473
  • botname= Barky botid= 8c1928112e34be14
  • botname= Twi botid= a41310638e34fe16
  • botname= SL-AL botid= cff00d007e377e75

To use these you can just right click the channel and click use bot from id.
Then just enter the bots name and id.
Thanks for the list VinX :)
sk68
Comments: 61
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 25, 2009 4:39 pm
lol, this script is really catching on, Ive had the crap scared out of me a few times by bots talking back to me =p
VinX
Comments: 56
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 27, 2009 6:56 am
ohh my bad :P

sorry for posting the whole script FordLawnmower :P

nvm

:D
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 27, 2009 3:47 pm
No worries VinX :):) :)
Kurama_
Comments: 20
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 28, 2009 5:19 am
Dude dude dude...DUUUDE this script is so freakin awesome! My bot was actually able to keep up a pretty good conversation. Some people figured out it was a bot. But most of them where clueless. =P 10/10...Forget 10/10 1000000/10!!! Keep up the good work.
VinX
Comments: 56
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 28, 2009 12:00 pm
it actually floods a little bit for me coz my internet connection is kinda slow ... :)

but still its a awesome script :D
Dodge
Comments: 26
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Aug 28, 2009 12:28 pm
It Goes Hard /me vote +9.5
localhostdar
Comments: 1
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 16, 2009 7:00 am
i m getting this error :(

/sockopen: insufficient parameters (line 13, script14.mrc)
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 16, 2009 11:04 am
@localhostdar Something must have went wrong when you pasted the script into the remote.
That line is
Code:
sockopen %sockname $gettok($hget(Pandora,$+($network,$chan)),1,32) 80

It's not possible to get that error if the script is intact and placed in a new remote by it's self.
To get to that point, the script has to check for the existence of the 6th token in the hash table for the current networkchannel.
Code:
if ($gettok($hget(Pandora,$+($network,$chan)),6,32) == $wildsite) {

If the 6th token is there then the 1st will also be and the variable %sockname is set one line before the call to sockopen.
Code:
var %sockname $+(pandora,$nick,$ticks)

So at the very least the command would be -->> sockopen pandora 0 80 <<-- Which would not generate a insufficient parameters error.
I suggest deleting the script and re-pasting it to a new remote.
If you still have problems, try to give me a better description of them and I will do my best to help you :)
Good Luck :)
Cracker200
Comments: 257
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 29, 2009 7:13 pm
Ford How come all i keep getting is [/code] NOOP Unknown command
-
NOOP Unknown command
-
NOOP Unknown command
-
NOOP Unknown command
- [/code]
Cheiron
Comments: 627
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 29, 2009 7:39 pm
NOOP is a no operation code. looking at the code i cannot see any no operation stuff in there as they are clearly marked in scripting as per this idle example ..
Code:

menu nicklist {
$$1 $+ 's Idle $+ $chr(58) $duration($nick($chan,$$1).idle): noop
}

this leads me to point to another script you may be running that uses the NOOP command
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 29, 2009 7:54 pm
It's because you're version is older than the command NOOP.
To fix this, go to the very top of the script or the the bottom of the script and add this line.
Code:
 alias -l alias noop { $eval($1-,3) }

Make sure this is not inside any brackets and it's on a line of it's own.

Alternately, you could goto Tools >> Scripts Editor
Click Aliases ( upper left )
Click ctrl+END
Add this line
Code:
alias noop { $eval($1-,3) }

Click ctrl+S (to save it)

Either way will work.

If you have trouble you can always type
Code:
 /alias /alias noop { $eval($1-,3) }

But this is just a temp fix on older versions of mirc.
The alias will probably delete it's self when you restart.

If you still have problems let me know Cracker200. I'm always willing to help make scripts compatible with older versions of mIRC :)

FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 29, 2009 8:03 pm
O.O I just saw your comment Cheiron. I didn't even check the script for Noop, I just assumed it was there ;/
I found it though :)
Code:
noop $regex($1,/\Q $+ $2 $+ \E(.*?)\Q $+ $3 $+ \E/gi)
Cracker200
Comments: 257
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 29, 2009 8:05 pm
.... Nope i unloaded every script from my bot and put that one in still says -
NOOP Unknown command
-
NOOP Unknown command
-
NOOP Unknown command
-
:|
Cracker200
Comments: 257
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 29, 2009 8:11 pm
So what now ?

....................................................................................................
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 29, 2009 8:17 pm
Read UP Cracker200. I left you a comment explaining how to fix it.
Cracker200
Comments: 257
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 29, 2009 8:17 pm
yes and i did that i didn't work or i wouldn't be asking now would i? lol


Well i don't have time to fĂșking mess around with code thats just pissing me off FordLawnMower... it's supposed to be ure code so why does it do it now? Clearly you have updated it or some #$% and now it's not working so ?
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 30, 2009 2:19 pm
The code works fine Cracker200. The problem is that you are using mIRC 6.16.
If you don't have time to mess with the code, then just upgrade your mirc.
Cracker200
Comments: 257
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 30, 2009 2:51 pm
But i'm not using blank mIRC For the bot i Made... so how can i UpGrade? What version would you Recomend?
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 30, 2009 3:05 pm
If the bot was made for 6.16 I would try 6.21.
You can select a version from here -->> http://www.oldversion.com/mIRC.html#download
Once you have the new version downloaded, just close the bots mirc and copy the mIRC.exe from the new version to the bots main directory. (Make sure you overwrite the old exe.)
Then just restart the bot and all should be fine.
Cracker200
Comments: 257
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 30, 2009 3:21 pm
Ok....
Cracker200
Comments: 257
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 30, 2009 3:27 pm
Ford when i'm connecting to irc.mindforge.org how come i just ping? i don't connect all the way i just ping ?
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 30, 2009 6:52 pm
I'm not sure what you mean by "i just ping". Do you mean like ping pong?
Do you mean you don't see the MOTD etc?
Cracker200
Comments: 257
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Sep 30, 2009 6:55 pm
Nvm i'm on now but no when i'd connect it'd freeze b4 MOTD and then say Software Connection Abort..
Brownjam0
Comments: 4
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 3, 2009 11:33 am
I keep getting this ... /sockwrite: 'pandoraBrownjam026182940' not connected (line 29, script1.ini)
or this ... <sockerror Pandora<

what do i do?
Cheiron
Comments: 627
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 3, 2009 11:52 am
that bot id may have been withdrawn from usage . try a couple of other bot id's or names from the menu. if they work, then that is the problem,.. :)
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 3, 2009 12:04 pm
Thanks Cheiron :) I should probably do some tests for a bad botid so I can generate a custom error message.
@Brownjam0 Is the bot working sometimes and generating an error when it's not?
From time to time I get the >sockerror Pandora< .. This is a custom error message that I added to the script and it usually means that the Pandora's bot site is overloaded or having some problems.
If this isn't the problem Brownjam0, try posting a little more information and I will do my best to help :)
Brownjam0
Comments: 4
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 3, 2009 8:58 pm
No more error messages (i did nothing) nothing happening at all now
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 3, 2009 9:24 pm
Ok Brownjam0. From the beginning.

  • You have to load this script into a second client.(You will not be able to see the bot talking from the bot's screen.)
  • Once you have the script loaded you will have to right click a channel screen and turn activate a bot for that channel.





  • To get the bot started talking you will have to say the bots Exact irc nickname in a channel where you have already activated a bot.

[Picture below is from the bot]

[Picture below from a 2nd client]


I hope this helps :)
If this doesn't help you Brownjam0, you will have to give me a little more information.
Brownjam0
Comments: 4
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 4, 2009 4:23 am
ill try that :)
Brownjam0
Comments: 4
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 4, 2009 4:30 am
yay it worked thanks for the help
Warrior1968
Comments: 7
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 4, 2009 7:39 am
I like your snippet it;s great fun :D just a quick Q? is there away to add a $nick or something soooooo it makes it more authentic and takes out the "unknown person" part?
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 4, 2009 11:04 am
@Warrior1968 Yea it's possible but I will have to change several lines of code.
I'll post an update in about 15 minutes.
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 4, 2009 11:13 am
Updated Warrior1968. Just use the new code at the Top of This Page
It should look like this now.
11:11:40 <Ford> hello RotSnot
11:11:49 <RotSnot> <Ford> Hey you.
I hope this is what you were looking for.
c0ax
Comments: 2
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 11, 2009 3:43 pm
I got this script working in a small channel but which has people coming & going alot. I saw some of the screenshots above that show the bot talking without showing the person of focus' nick in front of what it (the bot) says.

I would prefer it to be that way for my channel. Is there any chance of getting the previous version or can you make that something that can be toggled on/off.

Nice useful snippet either way & i think something to help break up the boredom of a smaller channel when noone's around.
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 11, 2009 3:58 pm
Try This version c0ax
I really should just make that an option ;/
c0ax
Comments: 2
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 11, 2009 4:34 pm
Thanks a bunch FordLawnmower. For the snippet & the speedy response. I do appreciate it. :)
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 11, 2009 8:50 pm
No Problem c0ax :)
Cracker200
Comments: 257
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 12, 2009 4:13 am
Ford Does you're script work with Version 6.31 ?
genie
Comments: 3
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 12, 2009 6:47 am
Fantastic piece of code, Mr Lawnmower (lol, cool nick too).

I'm having fun playing with the bots, but have been trying so hard to have the bot just talking to people that PM it, in PM.

Ie, someone pm's the bot, and that triggers Alice to start a conversation in the PM window. I'll keep tinkering, but maybe you could give me some pointers? Thanks in advance! BTW, I saw the comment above about changing $chan to $nick, and that doesn't work for me. Basically what I'm trying to do is have Alice talk to my msn buddies via the BitlBee IRC/MSN gateway. I'm pulling my hair out.. lol
Atr
Comments: 60
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 12, 2009 9:44 am
@genie, this is a vague idea .. but you could change
Code:
On *:Text:*:#: {
to
Code:
On *:Text:*:?: {


No idea if that would work, though.
Jethro_
Comments: 435
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 12, 2009 10:59 am
When you change the on text event to work for PM, you will need to either make a variable for $chan or replace $chan with the actual channel name, as in "#channel", for example. In PM, $chan becomes $null.
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 12, 2009 12:13 pm
@Cracker200 Yes. I tested it with 6.21.
@genie I don't know about any msn gateway but I will add support for PM. I've had that request several times now so I'll update the script.
I'll post it in a few days after I have thoroughly tested it.
Paran0ia
Comments: 1
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 12, 2009 2:08 pm
For some reason the bot's replies aren't echoing on my screen. All I see is the one-sided conversations people are having with it. I didn't see any comments from anyone else having this issue, so I think it may have something to do with the server I'm on (Oasiz.net), however I'm sure a simple echo command would fix it up; unfortunately I don't know anything about sockets or socks, so I don't know what I'd need to echo.

Any help would be appreciated!
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 12, 2009 3:34 pm
@Paran0ia This script is written to be loaded into a second mirc client so it's no supposed to echo to it's own screen. This is done to save resources because most people run lots of scripts like this on the same client.
If you would like to see the conversation you can try this version
genie
Comments: 3
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 15, 2009 12:08 pm
I'm loving this script, and have been playing around with it. I've been struggling with a modification I'm trying to do. What I want my bot to be able to do is to give responses to known inputs - and if they don't match, only then go to Pandora to get a response.
IE, if a user says "display stats", my bot will have code similar to:

on *:TEXT:display stats:?:/msg $chan The server has been up for 5 hours
else
get response from Pandora

It's not as easy as it seems! I'm struggling.. lol. I can do it my modifying my bots AIML via Pandora site, but I'd rather have it done at the irc script level for various reasons. Can anyone help?
FordLawnmower
Comments: 411
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 15, 2009 3:49 pm
It's actually simple genie and there is an example built into the script.
To start take a look at the first section of code. (The on text event)
Code:
On *:Text:*:#: {
  if ($hget(Pandora,$+($network,$chan))) {
    var %text $strip($1-)
    if ($me isin %text) { hadd Pandora $+($network,$chan) $puttok($hget(Pandora,$+($network,$chan)),$wildsite,6,32) }
    if (shutup isin %text) && ($nick isop $chan || $gettok($hget(Pandora,$+($network,$chan)),6,32) == $wildsite) {
      .msg $chan I will not be silenced forever :P
      hadd Pandora $+($network,$chan) $puttok($hget(Pandora,$+($network,$chan)),0,6,32)
      return
    }
    if ($gettok($hget(Pandora,$+($network,$chan)),6,32) == $wildsite) {
      var %sockname $+(pandora,$nick,$ticks)
      sockopen %sockname $gettok($hget(Pandora,$+($network,$chan)),1,32) 80
      sockmark %sockname $+($chan,_,04<,07,$nick,04>) $fixurl($wildsite) $fixurl($replace(%text,$me,$gettok($hget(Pandora,$+($network,$chan)),5,32))) $hget(Pandora,$+($network,$chan))
    }
  }
}

You will see that right after the script determines that there is a pandoras bot active for the current channel it creates a variable %text
Code:
var %text $strip($1-)

This is what you will use for evaluation to find things such as display stats.

If you scroll down a couple of lines you will see a section where I have done exactly what you are trying to do. In this case I am just looking for a word match for shutup.
Code:
    if (shutup isin %text) && ($nick isop $chan || $gettok($hget(Pandora,$+($network,$chan)),6,32) == $wildsite) {
      .msg $chan I will not be silenced forever :P
      hadd Pandora $+($network,$chan) $puttok($hget(Pandora,$+($network,$chan)),0,6,32)
      return
    }

Here is a simple example
Code:
    if (display stats isin %text) {
      .msg $chan I have been connected to $network for $uptime(server,1)
      return
    }

If you add this example to the on text event, the result should look like this.
Code:
On *:Text:*:#: {
  if ($hget(Pandora,$+($network,$chan))) {
    var %text $strip($1-)
    if ($me isin %text) { hadd Pandora $+($network,$chan) $puttok($hget(Pandora,$+($network,$chan)),$wildsite,6,32) }
    if (shutup isin %text) && ($nick isop $chan || $gettok($hget(Pandora,$+($network,$chan)),6,32) == $wildsite) {
      .msg $chan I will not be silenced forever :P
      hadd Pandora $+($network,$chan) $puttok($hget(Pandora,$+($network,$chan)),0,6,32)
      return
    }
    if (display stats isin %text) {
      .msg $chan I have been connected to $network for $uptime(server,1)
      return
    }
    if ($gettok($hget(Pandora,$+($network,$chan)),6,32) == $wildsite) {
      var %sockname $+(pandora,$nick,$ticks)
      sockopen %sockname $gettok($hget(Pandora,$+($network,$chan)),1,32) 80
      sockmark %sockname $+($chan,_,04<,07,$nick,04>) $fixurl($wildsite) $fixurl($replace(%text,$me,$gettok($hget(Pandora,$+($network,$chan)),5,32))) $hget(Pandora,$+($network,$chan))
    }
  }
}

I hope this helps you genie.
Be careful editing the code but don't be afraid. Always backup your working code to a text file before editing it and you won't have any problems.
genie
Comments: 3
 
mIRC Snippet:  Pandoras Talking Bot
Posted on Oct 15, 2009 5:51 pm
FordLawnmower, I can't thank you enough. I'm halfway to where I want to be, and may even be inspired enough to attempt a script all of my own - if I get this working!

Thanks again :)

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom