random reply
 
Post new topic   Reply to topic    Hawkee.com Forum Index -> TCL Scripting
 
Glynn2105  -  Tue Apr 01, 2008 10:00 am Reply with quote
hi wondering if somebody can help.... i have a mirc run bot that replies to virtually everything using this script line.

on *:TEXT:yes it was:#karamagic: msg $chan $read(random_yes_it_was.txt)

I now have an eggdrop bot and wish to have the same capabilty somehow using this.

How can i get this to work in a TCL so eggdrop will read it.
I tried the mirc snippet on the eggdrop and it dumped the eggdrop from the server lol
If somebody could help with this would be greatly appreciated.
Thank you in advance
arcADE  -  Thu May 22, 2008 4:48 am Reply with quote
try this:

Code
 
Glynn2105  -  Wed Oct 26, 2011 2:31 pm Reply with quote
sorry i know this is years old but i have been asked to do this all over again as they lost the eggdrop bot....i have tried this code but for some reason i cannot get it to work.
i have a text file called random.txt with all the different lines of text for the bot to display when somebody says DUMBOT but it doesnt do anything. can somebody please help me with this

thank you
Glynn2105  -  Sun Nov 06, 2011 5:48 pm Reply with quote
please can somebody help with this ive racked my brains till they hurt lol
Glynn2105  -  Mon Nov 07, 2011 4:46 pm Reply with quote
I finally worked it out. Here is the code if anybody wants to use it.
It uses a text file in the same directory as the tcl file. In the text file is lots of sentences like::

I'm fine thank you how are you
Why are you asking me that? Im a bot i dont have feelings

Here is the code. Have fun

Code
 


SOLVED Thank you
Display posts from previous:   
Post new topic   Reply to topic    Hawkee.com Forum Index -> TCL Scripting All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
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.