I'm posting this for a friend cause he needs a little help. I'm not sure on how to help him so i thought I would ask you guys.
He is useing the random read script by wcc, and all he wants to do is use for his channel. the problem is the other script that he is useing saves the utime into the file, he wants to know how do you modify the radom read script to remove the utime at the begining of the line. here is an example of how it looks
1056129388 test
so he wants to remove all thoses numbers from the line and keep the "test" text.
I told him he could filter out all numbers and only output the text from the string, but I thought someone would have a better way for him..
okay this is how wcc's randrom read works
##############
## COMMANDS ##
######################################################################
## DCC ## .chanset <channel> +/-randread ##
######### Enables or disables the sending of random messages to the ##
######### specified channel. ##
######################################################################
##########################################################
## Just load the script, edit the settings, and rehash. ##
##########################################################
##################################################
# Set the time in seconds between messages here. #
##################################################
set randread_setting(timer) "90"
############################################################################
# Set the file to read from here. This file must exist. NOTE: Changing the #
# contents of this file requires a rehash for the changes to take effect. #
############################################################################
set randread_setting(file) "./README"
####################
# Code begins here #
####################
if {![string match 1.6.* $version]} { putlog "\002RANDREAD:\002 \002WARNING:\002 This script is intended to run on eggdrop 1.6.x or later." }
if {[info tclversion] < 8.2} { putlog "\002RANDREAD:\002 \002WARNING:\002 This script is intended to run on Tcl Version 8.2 or later." }
set ::randread_data [split [read [set fd [open $::randread_setting(file) r]]] "\n"]
setudef flag randread