Tcl error [set:sbch]: can't read "bitchchannel": no such variable
but since the seccond "script" works ok, then the problem must be in the first one, chwr $channels <<-- thats the line i call the proc chwr with.. and if i remove that line, then the seccond script work just fine, it add the var as it should, and no problem..
I guess the best way is to combine the two scripts, but since i dont have a clue on how to do that i made them separate..
[12:13] Tcl error [set:sbch]: can't read "bitchchannel": no such variable
------------- EDIT ---------------
OK, i solved the problem, now to next part.. when i set a new channel, then i want the old one to be replaced with the new value, any way to do this ? or do i have to erase the file, then write a new one?
If you want to add a new channel, replace your variable which is set to the channel or the <text> after the !trigger with the channel name. I am not sure which one are you talking about.
I don't think you would need to erase your database file as it has got nothing todo with it, you are just replacing the script to work on another channel.
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee) PS: Guys, I don't accept script helps or requests personally anymore.
==================================
if i ask like this then, how do i remove a file ? i want all old data stored in the file gone befor i add a new line to it.. the fastest way would be "rm" i guess ? but i dont know the command for that true a TCL, the comman need to be sent to the shell.. since i know the name of the file, then all i need is "command for rm" file_name .
this will completely overwrite your file with the new information.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born