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)
}
}
}
}
|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