A learning bottalk system

By p0d on Dec 26, 2009

a little bottalk self learning system made mostly because im too lazy to sit and add text events for bottalks i let everyone else add there own

example of how to use:

!learn .pod p0d likes to script

if .pod is said on channel output would be:

p0d likes to script

!unlearn .pod
to remove an entry

F and C words were blocked for certain channels i idle so i would'nt get kicked add to or remove the line as you wish.

Oh and turn this switch on from any menu -- sorry guys forgot to add that instruction

menu * {
  Bottalk ( $+ %bottalk $+ ) 
  .On:/set %bottalk on
  .Off:/set %bottalk off
}
on *:TEXT:*:#: {
  if ($1 == !learn) {
    if (fuck isin $2-) || (cunt isin $2-) { msg # i wont learn those words $nick | halt }
    if ($read(botsys.txt, s, $2)) { msg # I already knew that $nick | halt }
    write botsys.txt $2-
    msg # i have learned from $nick .. ty for your knowledge. 
  }
  if ($1 == !unlearn) { 
    var %a = $read(botsys.txt, s, $2) 
    if (%a) { 
      write -dl $+ $readn botsys.txt
      msg # i grow more ignorant by the minute. Due to you $nick 
    }
  }
  else { 
    if (%bottalk == on) {
      set %botsys $read(botsys.txt, s, $1)
      if (%botsys) { 
        msg # $gettok(%botsys,1-,32) 
      }
    }
  }
}

Comments

Sign in to comment.
p0d   -  Dec 27, 2009

lol thanx shares my personality ;)

 Respond  
FordLawnmower   -  Dec 27, 2009

Crazy avatar p0d :)

 Respond  
p0d   -  Dec 27, 2009

|22:52| ( Þŕıŋćє•οƒ•Đŕєaмz™ )  !learn .pod testing
|22:52|   ( •Þŕıŋćє• )    i have learned from Þŕıŋćє•οƒ•Đŕєaмz™ .. ty for your knowledge. 
|22:52| ( Þŕıŋćє•οƒ•Đŕєaмz™ )  .pod
|22:52|   ( •Þŕıŋćє• )    testing 

working fine on my end did u turn the switch on in the menu ?

also using 6.35 but shouldnt matter the version in this code

 Respond  
jasonh   -  Dec 27, 2009

doesnt work for me on mirc 6.35

thanks me, and writes it to the file but wont say the word on the trigger

--edit--

woops i didnt see that it needed a toggle from the menu.

works fine now, thanks guys!

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.