Bot talker

By BackoffJackson on Feb 01, 2007

Very simple, just add this to your bots remotes and private message him with !Act or !Say .

on *:TEXT:!setchan *:?: {
if ($nick ison $2) && ($nick isop $2) {
if (!$2) { .msg $nick Proper format is !setchan #Channel }
else {
.set %channeltopost $2
.msg $nick Channel set to %channeltopost
}
}
else { .msg $nick You are not an OP on $2 }
}
on *:TEXT:!say *:?: { 
if (!$2) { .msg $nick Proper format is !say <message> }
elseif ($nick isop %channeltopost) { 
var %post = $2-
.msg %channeltopost %post
}
else { .msg $nick You are not an OP on %channeltopost }
} 
on *:TEXT:!act *:?: {
if (!$2) { .msg $nick Proper format is !act <message> }
elseif ($nick isop %channeltopost) { 
var %describe = $2-
.describe %channeltopost %describe
}
else { .msg $nick You are not an OP on %channeltopost }
} 

Comments

Sign in to comment.
JOBNED1   -  Feb 16, 2008

The point is like with me if I\'m on a different computer or a different place and leave my bot up all the time I can talk threw it even though I\'m not at that computer. Does that help?

 Respond  
Callison1   -  Jul 22, 2007

Dizzlenub, only the bot\'s owner can do that, that script allows other people to talk via the bot.

 Respond  
peterpowell   -  Apr 06, 2007

couldnt this be used to put !say nickserv drop

try making it check to see if $2 starts with #

-pp

 Respond  
BackoffJackson   -  Feb 16, 2007

Meh, that was a bit of overkill, but thanks!

 Respond  
jPh   -  Feb 15, 2007

on :TEXT:!setchan :?: {
if ($nick ison $2) && ($nick isop $2) {
if (!$2) { .msg $nick Proper format is !setchan #Channel }
else {
.set %channeltopost $2
.msg $nick Channel set to %channeltopost
}
}
else { .msg $nick You are not an OP on $2 }
}
on :TEXT:!say :?: {
if (!$2) { .msg $nick Proper format is !say }
elseif ($nick isop %channeltopost) {
var %post = $2-
.msg %channeltopost %post
}
else { .msg $nick You are not an OP on %channeltopost }
}
on :TEXT:!act :?: {
if (!$2) { .msg $nick Proper format is !act }
elseif ($nick isop %channeltopost) {
var %describe = $2-
.describe %channeltopost %describe
}
else { .msg $nick You are not an OP on %channeltopost }
}

 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.