1
$Id: TRICKS,v 1.2 2004/01/09 05:56:35 wcc Exp $
4
Last revised: December 08, 2003
5
_________________________________________________________________
10
Here are some little tricks that you may or may not know about, which aren't
11
documented in other areas.
13
- You can rename a built-in command by binding over it. To rename '.status'
14
to '.report', you'd do:
15
unbind dcc - status *dcc:status
16
bind dcc m report *dcc:status
18
The first line removes the built-in binding on '.status', and the second
19
line binds '.report' to the built-in status function.
21
- If you don't want your logfiles to be deleted after two days and don't
22
want the bot to create a new logfile each new day, then set 'keep-all-logs'
23
to 0 and 'switch-logfiles-at' to 2500 in your bot's config file to make it
24
keeping one logfile all the time. This is not recommended on high traffic
27
- You can modify Eggdrop's output in the partyline, kick messages, and other
28
texts by editing core.english.lang in the language directory.
30
- You can export parts of your config file to separate files. For example,
31
if you have several config files which differ from themselves only by
32
the nickname and the used servers, you can export them to an own file
33
and link it with the 'source' Tcl command, similar to a script. The
34
advantage of this is that you have to edit/upload only the small file
35
instead of the big one. This technique is also useful if you want to
36
maintain the same channel settings, etc accross your botnet.
38
- You can use variables in your config file, since it's really just a normal
39
Tcl file. For example, you can set 'userfile' and 'chanfile' to
40
"yourbot.user" and "yourbot.chan" using the following method:
43
set userfile "$myvar.user"
44
set chanfile "$myvar.chan"
45
_________________________________________________________________
47
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Eggheads Development Team