~ubuntu-branches/ubuntu/lucid/eggdrop/lucid

« back to all changes in this revision

Viewing changes to doc/TRICKS

  • Committer: Bazaar Package Importer
  • Author(s): Guilherme de S. Pastore
  • Date: 2004-06-17 09:15:28 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040617091528-64rrw1sa33lkfhmh
Tags: 1.6.16-2
* Fixed typo on README.Debian
* Fixed hyphens in manual page
* Converted debian/rules to CDBS
* Set path to binary on example config file
* Changed LANGDIR on src/eggdrop.h (Closes: #254824)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
$Id: TRICKS,v 1.2 2004/01/09 05:56:35 wcc Exp $
 
2
 
 
3
Eggdrop Tricks
 
4
Last revised: December 08, 2003
 
5
     _________________________________________________________________
 
6
 
 
7
                              Eggdrop Tricks
 
8
 
 
9
 
 
10
  Here are some little tricks that you may or may not know about, which aren't
 
11
  documented in other areas.
 
12
 
 
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
 
17
 
 
18
    The first line removes the built-in binding on '.status', and the second
 
19
    line binds '.report' to the built-in status function.
 
20
 
 
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
 
25
    channels.
 
26
 
 
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.
 
29
 
 
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.
 
37
 
 
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:
 
41
 
 
42
      set myvar "yourbot"
 
43
      set userfile "$myvar.user"
 
44
      set chanfile "$myvar.chan"
 
45
     _________________________________________________________________
 
46
 
 
47
   Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Eggheads Development Team
 
48