Boring, Senseless Random Messages

By Jethro on Jun 19, 2011

This script will send a boring, random message to the active channel when the irc server pings you. (You must have your client looking at the active channel window) It's useful when your nickname idles in a quiet channel, where activity is scarce and that you're away from keyboard every so often.

Below are some random ones emitted when you get pinged by the server:

I'm in Illinois hello hello! Is there evrybody some there see ya Hola desde España Holy Sh*t!! I feel like such a spy...if your really live...grab your head.. Are you workin' hard or hardly workin'? CATS MEOW MEOW MEOW**Usage:** right-click on your nick list or channel to toggle the script on and off.
menu nicklist,channel {
  Turn Random Messages
  .On:enable #rm
  .Off:disable #rm
}
#rm on
on *:sockread:rm:{
  var %rm 
  sockread %rm 
  if ($regex(%rm,/<h1>(.*)<\/h1>/)) { 
    [ [ $sock(rm).mark ] ] 
    sockclose rm 
  }
}
on *:ping:{
  if ($sock(rm)) sockclose $v1 
  sockopen rm www.randommessages.com 80
  var %m = 1
  while ($comchan($me,%m)) {
    if ($v1 == $iif($active ischan,$v1)) {
      sockmark rm msg $v1 $!regml(1)
    }
    inc %m
  }
}
on *:sockopen:rm:{ 
  tokenize 94 $left($str(sockwrite -nt rm^,2),-1) 
  var %- 1, %` GET / HTTP/1.1^Host: $!+($sock(rm).addr,$str($crlf,2))
  while $gettok(%`,%-,94) { 
    [ [ $+($,%-,$chr(32),$v1) ] ] 
    inc %- 
  } 
}
#rm end

Comments

Sign in to comment.
RIcko   -  Feb 13, 2014

Does any of you know similar sties to Randommessages.com? if yes please post them here so we can bring this script to life!

 Respond  
PackardBell   -  Oct 10, 2013

I get a Internal Server Error
:/
Do you know what's wrong @Jethro ?
also : seems nice : if you can fix it, i'll give it a like ;)

TMFKSOFT  -  Nov 07, 2013

You could easily host your own on your own website change Line 17 to your own website and change Line 28's "GET /" to the location of a PHP script e.g. "GET /random/index.php" and have a simple PHP Script that spits out random Scentences. I could possibly post one on here.

Sign in to comment

RIcko   -  Jul 09, 2012

Works great! thanks, +like

 Respond  
Jethro   -  Jul 08, 2012

My mistake. I forgot to edit the variables. Here is it:

on me:*:part:#:{
  if (%random) {
    $+(.timer,$network) off 
    set -e %randommsg 1
  }
}
on *:quit:{
  if ($nick == $me) && (%random) {
    $+(.timer,$network) off
    set -e %randommsg 1
  }
}
on *:disconnect:{
  if (%random) $+(.timer,$network) off 
  set -e %randommsg 1
}
on me:*:join:#:{
  if (%randommsg) {
    notice $me Random Message has been toggled off. $&
      Right-click on the nicklist or channel to toggle it on. 
    unset %random*
  }
}
on *:kick:#:{
  if ($knick == $me) && (%random) $+(.timer,$network) off
  set -e %randommsg 1
}
on *:sockread:rm:{
  var %rm 
  sockread %rm 
  if ($regex(%rm,/<h1>(.*)<\/h1>/)) { 
    [ [ $sock(rm).mark ] ] 
    sockclose rm 
  }
}
alias -l randommsg {
  if ($sock(rm)) sockclose $v1 
  sockopen rm www.randommessages.com 80
  sockmark rm amsg $!regml(1)
}
on *:sockopen:rm:{ 
  tokenize 94 $left($str(sockwrite -nt rm^,2),-1) 
  var %- 1, %` GET / HTTP/1.1^Host: $!+($sock(rm).addr,$str($crlf,2))
  while $gettok(%`,%-,94) { 
    [ [ $+($,%-,$chr(32),$v1) ] ] 
    inc %- 
  } 
}
menu channel,nicklist {
  Random Message
  .ON {
    if (!%random) {
      set -e %random $$?"Input the trigger time in seconds:"
      $+(.timer,$network) 0 %random randommsg
      echo 2 # * Time Interval in Seconds: $+($chr(2),%random)
      if (%randommsg) unset $v1
    }
    else echo 4 # * Random Message is Already Switched On!
  }
  .OFF { 
    if (%random) {
      $+(.timer,$network) off 
      echo 2 * Random Message Has Been Turned Off!
      unset %random*
    }
    else echo 4 # * Random Message is Already Switched Off!
  }
}
 Respond  
RIcko   -  Jul 08, 2012

Aight thanks, there is only one thing left, when i click Random Message > off, it doesn't stop and it keeps sending to all the channels, i had to unload the script for now to make it stop.

 Respond  
Jethro   -  Jul 08, 2012

Done. I've modified the altered code above.

 Respond  
RIcko   -  Jul 08, 2012

Yeah, all the channels that the bot is in, (randomly) :)

 Respond  
Jethro   -  Jul 07, 2012

You want it to send the output to all the channels you're on?

 Respond  
RIcko   -  Jul 07, 2012

ow thanks jethro, but looks like its sending to the selected channel only, i guess its rm msg already so whats wrong?

 Respond  
RIcko   -  Jul 06, 2012

ehm Jethro, is it possible to make it talk randomly in a channel but with a controllable timer instead of the server pings, im not reuqesting a dialog though, i just want to know how to control the timer in the script, like saying a random message in a random channel every 10 minutes ( without the server pings ) + controllable.

 Respond  
Dodge   -  Jun 10, 2012

Lol @ random, gibberish drivel, I like It and the idea of pinging off the server. Going to run It for awhile. 7/10
and 9/10 for the random, gibberish drivel line.

 Respond  
Mukey   -  Jun 10, 2012

actually, both versions that you said would be great to try out. a bot that responds to someone talking to it or just it talking on its own but faster.

 Respond  
Mukey   -  Jun 10, 2012

thanks, yeah that would be great. very great script btw, its one of my favs on the site!

 Respond  
Jethro   -  Jun 10, 2012

Well, Mukey, if you want to speed the snippet and make the bot talk constantly, it has to be modified using a timer (a preset delay of time for the trigger) or a text event to activate it. (By text event, it triggers when someone talks) But be warned that you may be labeled as annoying on account of random, gibberish drivel this snippet produces. The main idea of it is to make you "stand out" as being there, not as a lifeless idler in a channel during the downtime when you're not active and participating.

If you still insist on your wish, Mukey, let me know, and I'll make the personal adjustment for you.

 Respond  
TMFKSOFT   -  Jun 10, 2012

@Mukey The bot uses the PING from the IRC Server. The ping rate cannot be sped up.

 Respond  
Mukey   -  Jun 10, 2012

is there anyway to speed up the bot?

 Respond  
chachin   -  Oct 17, 2011

1001 here :o

 Respond  
alabama   -  Oct 17, 2011

when i get home, be prepared to be at 700

 Respond  
Jethro   -  Oct 17, 2011

If you keep on saying that as perfect, I'll be stuck with 600 likes forever, won't I? lol

 Respond  
alabama   -  Oct 17, 2011

i see. i will have to use this, and possibly make some sort of .... php snippet that makes sentences out of it?
thanks
id give ua like but ur at a perfect 600

 Respond  
Jethro   -  Oct 17, 2011

I've updated the script to send a message to the active channel where you are focusing on, instead of transmit it to all the channels as before.

 Respond  
Jethro   -  Oct 17, 2011

alabama, it doesn't talk constantly, but it talks when the server pings you, depending how often your server send you a ping. It's rather useful if you will, especially when you're away from your PC, you have nothing to say, and you want to appear that you're alive and kicking. :P People who don't know will think you're there speaking. It's especially useful when you're on a channel where the ops kick for idlers. This sort of acts like an auto-bot talker. You can turn it off when you're back on your PC via nicklist and channel popup.

 Respond  
alabama   -  Oct 16, 2011

oes it constantly talk?
id give u a like....but dont wana ruin ur perfect 600

 Respond  
chachin   -  Sep 11, 2011

got 2 bots to talk to each other :D 10/10

 Respond  
TMFKSOFT   -  Jun 20, 2011

No Problem :)

 Respond  
Jethro   -  Jun 20, 2011

Thanks, I could do that, but this is just a trivial script for when the channel you reside on is virtually "lifeless" and you spit out a sentence to sort of break the ice so that you appear "alive" lol Thanks again for the rating.

 Respond  
TMFKSOFT   -  Jun 20, 2011

Very inventive to use the Ping!
But this makes it a bit too often, I suggest you could add a $rand and a HALT so the bot has a 25% chance of not
saying anything. Otherwise 7/10 +Like :D

 Respond  
Jethro   -  Jun 19, 2011

Guys, I'm grateful to your kind words, scores, and likes.

 Respond  
napa182   -  Jun 19, 2011

Nice work Jethro_ 9/10 +like

 Respond  
Jordyk19   -  Jun 19, 2011

This is like the eggdrop's Bmotion. Very nice. +1like

 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.