Hello! What do I have to do that my eggdrop only reacts to users who are qops (or sops). So they have the channel mode +qo or +oa. In my irc network there is a "~" before qops and a "&"before sops. Can anybody make a script for me which does this? For example: bind pub - !reh...
Hello!
I made a script that shows me a line of a textfile. For example with "!showline 2" my bot shows the second line of the file. But how can I find out if this line exists, e.g. if the file only has one line?
Hello!
I made a script that lets me delete a line of a textfile. So with "!del 3" I can delete the third line. Is there a command that checks a variable whether it is a letter or a number?
Hello! When somebody in the channel writes a certain command, my bot should write something back and after 15 seconds a second message. So I made this script but there must be something wrong, because an error occurs: "can't read "chan": no such variable" bind pub - !test test pr...
bind pub - !mods mods proc mods {nick uhost hand chan arg} { array set modnames { nick1 nick2 nick3 } foreach {mod} [array get modnames] { if {[onchan $mod $chan]} { putquick "PRIVMSG $chan :The following mods are online at IRC: $mod" } } } I have already begun with making this script. Th...
Hello!
I need a script which can do the following:
With a command e.g. !mods I want to check the online status of saved nicks. Maybe it is possible to save these nicks in an array(?). Then my eggdrop should write "Online: nick1, nick2, nick3" or "nobody is online".
Yes in the textfile, there is exactly that nick. When I type "!medals {{As}masterblast{GEN}}" lsearch find this nick. But when I want to store this nick a new line is made everytime. What do you mean with
The bot seems to have problems with this nick: {{As}masterblast{GEN}}
It does not make an own line for each time, but it makes a new line everytime for this nick, when it has MVP or MostKills.
Does anyone know why?
Hello!
Anywhere in this forum I found a tutorial about writing and reading textfiles. But now I can't find it any more. Can anybody please give me the url of that tutorial?
Does it make any difference where I put in the close command? So this should be right? set medalsfile "scripts/medals.txt" bind pub - !medals medals:get proc medals:get {nick uhost hand chan arg} { set fd [open $::medalsfile r+] while {![eof $fd]} { lappend list [gets $fd] } if {[set le [l...