I recently saw a script here that would simply mimic anything said, so I made my own where you could choose who you want it to mimic. This script is meant for a bot. It will copy their words and actions.
Updates:
Fixed a really stupid mistake where the timer was 0 1 instead of 1 0
Made it so that it will continue to mimic someone if they switch nicknames
Fixed a small bug saying it was already off when you say ~mimic off
Commands:
~mimic on - turns it on
~mimic (nick) - makes it mimic a nick
~mimic off - turns the entire script off, it will stop mimicking people
~mimicoff (nick) - will make it stop mimicking only that person
On *:LOAD: {
set %mimic.on false
}
On *:TEXT:~mimic *:#: {
if (%mimic.on = true) {
if ($2 != on) && ($2 != off) {
set %mimic. [ $+ [ $2 ] ] on
msg $chan $2 has been added to the mimic list
}
if ($2 == off) {
unset %mimic.*
set %mimic.on false
halt
}
if ($2 == on) {
msg $chan Mimic is already on.
}
}
if (%mimic.on = false) {
if ($2 == on) {
set %mimic.on true
msg $chan Mimic has been turned on.
}
if ($2 == off) {
msg $chan Mimic is already off.
}
if ($2 != on) && ($2 != off) {
msg $chan Mimic is off. Type ~mimic on to turn it on.
}
}
}
ON *:TEXT:~mimicoff *:#: {
if (%mimic. [ $+ [ $2 ] ] == on) {
unset %mimic. [ $+ [ $2 ] ]
msg $chan I will no longer mimic $2 $+ .
halt
}
if (!%mimic. [ $+ [ $2 ] ]) {
msg $chan I wasn't even mimicking them!
}
}
On *:TEXT:*:#: {
if (%mimic. [ $+ [ $nick ] ] == on) && ($left($1,1) != ~) {
timerMimic 1 0 msg $chan $replace($1-,$me,$nick)
}
}
On *:Action:*:#: {
if (%mimic. [ $+ [ $nick ] ] == on) && ($left($1,1) != ~) {
timerMimic 1 0 describe $chan $replace($1-,$me,$nick)
}
}
On *:NICK: {
if (%mimic. [ $+ [ $nick ] ] == on) {
set %mimic. [ $+ [ $newnick ] ] on
unset %mimic. [ $+ [ $nick ] ]
}
}