This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Propose Tcl

Old posts that have not been replied to for several years.
Locked
t
the_crow
Halfop
Posts: 42
Joined: Fri Feb 28, 2003 7:37 am
Location: Lisboa, Portugal

Propose Tcl

Post by the_crow »

HEllo there.
Im looking for a tcl for along time ago.
I try to find a tcl, that all users that are in the channel can propose is nick to something, and the bot keep the record of the persons that propose is nick.
Can you help me???
Thanks :)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Please define this "propose is nick to something" and probably I'll help you out somehow..
Once the game is over, the king and the pawn go back in the same box.
t
the_crow
Halfop
Posts: 42
Joined: Fri Feb 28, 2003 7:37 am
Location: Lisboa, Portugal

Post by the_crow »

Sorry about my english.

Let me try explain even better...

The reason that i want this tcls it's for users from a channell, can give is nick to possibles op's. I would like to find one tcl, that permit one person make !me (it's a exemple) and the bot record's his nick(but only the nick) in a database.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

So, the propose of this is it to write in a file the nick of the person who calls a channel command, like !me and he to record it's nick in that file, is this what you want to do?
Once the game is over, the king and the pawn go back in the same box.
t
the_crow
Halfop
Posts: 42
Joined: Fri Feb 28, 2003 7:37 am
Location: Lisboa, Portugal

Post by the_crow »

Yessssss.... is that :)
Can you help me!?!?
Thks :)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

set propose "propose.txt"

bind pub - !me write:propose

proc write:propose {nick uhost hand chan text} {
  if {![file exists $::propose]} { 
    putlog "$::propose file doesnt exists, creating file..." 
    set file [open $::propose w] 
    puts $file "$nick" 
    catch {close $file} 
  }
  set file [open $::propose a] 
  puts $file "$nick" 
  catch {close $file} 
}
Once the game is over, the king and the pawn go back in the same box.
t
the_crow
Halfop
Posts: 42
Joined: Fri Feb 28, 2003 7:37 am
Location: Lisboa, Portugal

Post by the_crow »

thanks :)
This message is only to say thanks :)
:)
Locked