Privmsg script for your bot

By darkarrow on Jan 20, 2009

just load the script in a new remote and all set

on *:open:?:*: {
  if (!$($+(%,msgflood,.,$nick),2) && %privmessage) {
    set -u30 $+(%,msgflood.,$nick) on
    .msg $nick if you did not notice i am a bot, and therefor i will not talk back to you. Your msg will be sent to my owner %Powner
    .close -m $nick
    .msg %Powner $nick has this to say||>> $timestamp $+(<,$nick,>) $1-
    .close -m %POwner
  }
}
menu * {
  .privmsg message
  ..Turn $iif(!%privmessage,ON,OFF):{ $iif(!%privmessage,set %privmessage on,unset %privmessage) | echo -a Privet Message Is Now $iif(!%privmessage,OFF,ON) }
  ..Set Owner:{ set %Powner $$?="Set Bot Owner" | echo -a Bot Owner Is $! }
}
on *:load: { echo -a You have just loaded darkarrows bot msg script }

Comments

Sign in to comment.
darkarrow   -  Dec 03, 2009

lol ok grant fixed and thanks WatsoN

 Respond  
Jonesy44   -  Jul 24, 2009

LoL! I thought i recognised that kinda scripting.. then i noticed napa's comment :L

 Respond  
Grant-   -  Jul 24, 2009

small, but still, I'm a grammar nazi and everything has to be perfect

set -u30 $+(%,msgflood,.,$nick) on
set -u30 $+(%,msgflood.,$nick) on
 Respond  
WatsonN   -  Jul 24, 2009

hey man i was just makin sure im new to mirc scripting.

 Respond  
darkarrow   -  Jul 23, 2009

um yes lol

 Respond  
WatsonN   -  Jul 23, 2009

so you would want to add something like

/set %owner $?="Enter your nickname"

correct me if im wrong

 Respond  
darkarrow   -  Jan 21, 2009

thank you for the suggestions is it ok if i use that for the script instead of mine?

 Respond  
napa182   -  Jan 21, 2009

this is open to flood attacks on ur bot and ur self.

you could add a bit of flood protection to it and also away to turn it on/off and set the bot owner

on *:open:?:*: {
  if (!$($+(%,msgflood,.,$nick),2) && %privmessage) {
    set -u30 $+(%,msgflood,.,$nick) on
    .msg $nick if you did not notice i am a bot, and therefor i will not talk back to you. Your msg will be sent to my owner %POwner
    .close -m $nick
    .msg %POwner $nick has this to say||>> $timestamp $+(<,$nick,>) $1-
    .close -m %POwner
  }
}
menu * {
  .privmsg message
  ..Turn $iif(!%privmessage,ON,OFF):{ $iif(!%privmessage,set %privmessage on,unset %privmessage) | echo -a Privet Message Is Now $iif(!%privmessage,OFF,ON) }
  ..Set Owner:{ set %POwner $$?="Set Bot Owner" | echo -a Bot Owner Is $! }
}
on *:load: { echo -a You has just loaded darkarrows bot msg script }
 Respond  
Aucun50   -  Jan 20, 2009

Add something like

msg %owner $nick said " $1- " at $time on $date

 Respond  
darkarrow   -  Jan 20, 2009

comment please for suggestions :)

 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.