Questions tagged [eggdrop]

Eggdrop is an IRC robot that is scripted using Tcl.

Eggdrop is an IRC robot that is scripted using Tcl. It was created originally in 1993, and is still supported; the most recent release was version 1.6.20 on 23 Jul 2010.

Useful Links

53 questions
3
votes
3 answers

Order files by unconventional date in filename (PHP)

I'm working with a PHP script that allows the chronological browsing of Eggdrop-generated IRC logs. Initially, I was reading the directory contents and inserting the log names into an array based on file modification date. After a recent server…
Winfield Trail
  • 5,251
  • 2
  • 22
  • 43
3
votes
2 answers

How would an irc bot written in tcl stack up against a python/node.js clone?

I believe eggdrop is the most active/popular bot and it's written in tcl ( and according to wiki the core is C but I haven't confirmed that ). I'm wondering if there would be any performance benefit of recoding it's functionality in node.js or…
meder omuraliev
  • 171,706
  • 64
  • 370
  • 423
3
votes
1 answer

Mysqltcl foreach loop tcl

My issue is that the first set return drops the $sub1 before it can be used in the string match so the script doesn't continue. I have tried to include the rest of the script inside the first set return and it works but...I get multiple messages to…
Maphex
  • 31
  • 3
2
votes
1 answer

How does this recursion work in this example?

So this is the classic egg drop problem. I just don't get how the recursion works here. How does it reach the end of the function which returns min+1 every time the recursion takes place? Note that my very conceptual understanding of recursion may…
2
votes
1 answer

Anti Flood for command

I have this script I'm working on: bind pub ga !kick pub_do_kick proc pub_do_kick {nick uhost hand chan arg} { # create a sub-proc to delay proc delay {} { return } # timer already running? if {[utimerexists delay] == ""} { …
Dean
  • 725
  • 3
  • 15
  • 29
2
votes
1 answer

Reading last whole word from variable

I am currently making a script that manipulates several files, and I am trying to read the last whole word from a variable ($pio). The string is variable in length and word count and is set to $pio in the start of the function. I have tried to read…
hophans
  • 53
  • 1
  • 5
2
votes
3 answers

TCL split text string to multiple variables (eggdrop)

I am working on a mysql select and insert script but i am having issues with extracting a single line into two variables. The line is handed as variable $arg and is composed by: "text field 1=text field 2" i try to split $arg by regexp using "=" as…
hophans
  • 53
  • 1
  • 5
2
votes
3 answers

non-case-sensitive version of file exists command

Well, not sure what to do in this regard. A little while ago I modified a logging script for an eggdrop bot.. but now an issue unfolds that for some reason, it is logging actions/text in separate files because of an issue of character case. …
Daedalus
  • 7,518
  • 3
  • 29
  • 56
2
votes
1 answer

Keep mysql connection open

I'm making a eggdrop tcl script to write activity of several public IRC channels to a database (over time this will be 10 to 15 channels I think). I have two options how to handle the database connection in mind. An user says something -> Open a…
David
  • 45
  • 7
2
votes
1 answer

regsub match as lindex index, against irc control characters

Well, I've been searching the internet for the last 10+ hours with no luck or success regarding this.. I am attempting to convert irc control codes(colors, etc) into html, the input text plucked from an eggdrop tcl bound event. The bold/underline…
Daedalus
  • 7,518
  • 3
  • 29
  • 56
2
votes
2 answers

Problems understanding TCL CATCH exec issue

Got a problem thats being doing my head in for the last 2 days. Im running a tcl script (for an eggdrop) which when triggered, executes a local shell command (child process) and if the command is succesfull it spits out the results. However, if the…
Instronics
  • 79
  • 3
  • 6
2
votes
1 answer

Eggdrop Compiling [error: parse error before...]

Comming to ask for help today, after a long search here, and on entire web, no solution found ... I tryed to compile a 1.6.21 version of eggdrop for Windows. I'm using last release of cygwin and tcl 8.5.11, then i followed instructions provided on…
1
vote
1 answer

Read The Last Line Of An Active Logfile With Eggdrop & .tcl

Hello i was wondering if its possible to read the last line of a realtime logfile with eggdrop and a .tcl script im able to read the first part of the logfile but thats it it doesnt read anymore of it
fright
  • 11
  • 2
1
vote
1 answer

how can select with multiple output from sqlite

I want to do an sql query and only get a response, although it should be five. only the frist is put to channel bind pub "-|-" !sqlpre pub:test:sqlpre proc pub:test:sqlpre { nick host handle channel arg } { set searchname [lindex [split $arg]…
kuck
  • 97
  • 6
1
vote
2 answers

TCL-script (Eggdrop) has problems with special characters

I have installed Eggdrop on a new Debian server, but it keeps having issues with processing special characters. Eggdrop is running utf-8. I have even manually enforced TCL encoding to utf-8 in the script. And I have tried recompiling Eggdrop with…
Dennis
  • 2,466
  • 4
  • 26
  • 39
1
2 3 4