r1ch.net forums
* Home Help Search Login Register
r1ch.net  |  r1ch.net stuff  |  Bitchbot  |  Topic: BitchBot Interupting
Pages: [1]
Print
Author Topic: BitchBot Interupting  (Read 5969 times)
KrAzE|TeamXW.com
Guest
« on: March 21, 2005, 04:08:34 am »

Is there a way for factoids to just be said?

Like if a person added a factoid about "john doe" and somone sais john doe in chat, bitch would just say a factoid.

I think it would be interesting and may sparc some more use out of the bot if it could say factoids without a ?? or without talking to it.. much like humans.


Also: 2nd question.

I wanted my bot to be named TeamXW|Bot but apparently XW cannot be used in the name field.. is there a certain way I need to put it to be able to use the name?
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #1 on: March 21, 2005, 05:29:15 am »

I think W was accidentally left out of the valid nickname characters in the current release. Both changes will require you to open up bitch.pl and edit the perl code - the nickname one is easy, search for nickchars or abcdefg and add w into that list. Making the bot reply on all messages may just be a case of looking for ?? and deleting it, it's been a while since I worked on bitchbot.
Logged
KrAzE|again|
Guest
« Reply #2 on: March 21, 2005, 08:43:16 pm »

Code:
#######################
# CHECK FOR COMMAND?? #
#######################
if ($noqq == 0 && substr($mtext,-2,2) eq "??") {
  if ($mtext =~ /^\Q$botname\E($botanswer)/i) {
    sndtxt("Use either \002$botname, command\002 or \002command??\002, not both.");
    next;
  }
  $mtext = "$botname, " . substr($mtext,0,length($mtext)-2);
  $silent = 1;
}

if (lc($ffirstword) eq "seen") {
  if ($silent == 0) {
    $mtext = lc($botname) . ", " . $mtext;
  }
}

Should I remove everything, or just the "??" with "" or "."

I dont have a clue when it comes to perl....or any language at this point..
Logged
Pages: [1]
Print
r1ch.net  |  r1ch.net stuff  |  Bitchbot  |  Topic: BitchBot Interupting
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines