Idle Messenger (iMSG)

By Pepsi_Man0077 on Jan 23, 2008

Keeps a message awaiting for a user that is idle and tells them when they return.

When you load the script, //run $mircdir and in that folder, create a folder called iMSG

Load into remotes of a bot

and type !imsg

When the user returns they will be notified.

Enjoy :D

on *:TEXT:*:*: {
  if ($1 = !iMSG) && ($2) {
    write iMSG/ $+ $2 $+ .txt $nick - $3-
    notice $nick iMSG successfully recorded. The user will be notified when they return.
    hadd -m msgs $2 $ctime
    set %read. [ $+ [ $2 ] ] OFF
  }
  if ($hget(msgs,$nick)) {
    notice $nick $nick $+ , you have a(n) iMSG that was last sent to you $duration($calc($ctime - $hget(msgs,$nick))) ago
    notice $nick If you wish to view this message, type !view
    hdel msgs $nick
  }
  if ($1 = !view) {
    play $nick iMSG/ $+ $nick $+ .txt 50
    timer 1 5 msg $nick Is your iMSG board getting too crowded? If so type !clear
  }
  if ($1 = !clear) {
    remove iMSG/ $+ $nick $+ .txt
    msg $nick iMSG list successfully cleared.
  }
}

Comments

Sign in to comment.
kslice917   -  Mar 02, 2008

nice idea for a server that dont have memoserv

Are you perhaps trying to imply that since just about every IRC Server has a MemoServ, that would make this just about pointless ;)

But hey, nice job! Good thing to have add to a bot!

 Respond  
napa182   -  Jan 30, 2008

nice idea for a server that dont have memoserv

 Respond  
Pepsi_Man0077   -  Jan 24, 2008

no the slash (/) means any file that is in your $mircdir

so if it was /iMSG. Then that would (for me) be C:/Program Files/mIRC/iMSG

 Respond  
Korvin   -  Jan 23, 2008

thats a \"\\" slash, it reverts to your most used drive, EX: C:/, for me its G:/ =]

 Respond  
guest598594   -  Jan 23, 2008

i guess u can do that then. when i was makin a script for someone on the forum a while back, something involved a slash that screwed it up, but i guess this isn\'t the case.

 Respond  
Pepsi_Man0077   -  Jan 23, 2008

nope i tested it, works 100% as far as i can see.

 Respond  
guest598594   -  Jan 23, 2008
 remove iMSG/ $+ $nick $+ .txt

wont the / screw up the directory?

try

remove $+(iMSG.,$nick,.txt)

or if you wanted the slash,

remove $qt($+(iMSG/,$nick,.txt))
 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.