1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
|
<!DOCTYPE html>
<html lang="en" data-content_root="../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Textfile Substitutions — Eggdrop 1.10.1rc2 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=03e43079" />
<link rel="stylesheet" type="text/css" href="../_static/eggdrop.css?v=ab48a1b6" />
<script src="../_static/documentation_options.js?v=290de6c6"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Eggdrop Tcl Commands" href="tcl-commands.html" />
<link rel="prev" title="Advanced Tips" href="tricks.html" />
</head><body>
<div class="header-wrapper" role="banner">
<div class="header">
<div class="headertitle"><a
href="../index.html">Eggdrop 1.10.1rc2 documentation</a></div>
<div class="rel" role="navigation" aria-label="related navigation">
<a href="tricks.html" title="Advanced Tips"
accesskey="P">previous</a> |
<a href="tcl-commands.html" title="Eggdrop Tcl Commands"
accesskey="N">next</a>
</div>
</div>
</div>
<div class="content-wrapper">
<div class="content">
<div class="sidebar">
<h3>Table of Contents</h3>
<p class="caption" role="heading"><span class="caption-text">Installing Eggdrop</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../install/readme.html">README</a></li>
<li class="toctree-l1"><a class="reference internal" href="../install/install.html">Installing Eggdrop</a></li>
<li class="toctree-l1"><a class="reference internal" href="../install/upgrading.html">Upgrading Eggdrop</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Using Eggdrop</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="features.html">Eggdrop Features</a></li>
<li class="toctree-l1"><a class="reference internal" href="core.html">Eggdrop Core Settings</a></li>
<li class="toctree-l1"><a class="reference internal" href="partyline.html">The Party Line</a></li>
<li class="toctree-l1"><a class="reference internal" href="autoscripts.html">Eggdrop Autoscripts</a></li>
<li class="toctree-l1"><a class="reference internal" href="users.html">Users and Flags</a></li>
<li class="toctree-l1"><a class="reference internal" href="bans.html">Bans, Invites, and Exempts</a></li>
<li class="toctree-l1"><a class="reference internal" href="botnet.html">Botnet Sharing and Linking</a></li>
<li class="toctree-l1"><a class="reference internal" href="ipv6.html">IPv6 support</a></li>
<li class="toctree-l1"><a class="reference internal" href="tls.html">TLS support</a></li>
<li class="toctree-l1"><a class="reference internal" href="ircv3.html">IRCv3 support</a></li>
<li class="toctree-l1"><a class="reference internal" href="accounts.html">Account tracking in Eggdrop</a></li>
<li class="toctree-l1"><a class="reference internal" href="pbkdf2info.html">Encryption/Hashing</a></li>
<li class="toctree-l1"><a class="reference internal" href="python.html">Using the Python Module</a></li>
<li class="toctree-l1"><a class="reference internal" href="twitchinfo.html">Twitch</a></li>
<li class="toctree-l1"><a class="reference internal" href="tricks.html">Advanced Tips</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Textfile Substitutions</a></li>
<li class="toctree-l1"><a class="reference internal" href="tcl-commands.html">Eggdrop Tcl Commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="twitch-tcl-commands.html">Eggdrop Twitch Tcl Commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="patch.html">Patching Eggdrop</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Tutorials</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../tutorials/setup.html">Setting Up Eggdrop</a></li>
<li class="toctree-l1"><a class="reference internal" href="../tutorials/firststeps.html">Common First Steps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../tutorials/tlssetup.html">Enabling TLS Security on Eggdrop</a></li>
<li class="toctree-l1"><a class="reference internal" href="../tutorials/userfilesharing.html">Sharing Userfiles</a></li>
<li class="toctree-l1"><a class="reference internal" href="../tutorials/firstscript.html">Writing an Eggdrop Tcl Script</a></li>
<li class="toctree-l1"><a class="reference internal" href="../tutorials/module.html">Writing a Basic Eggdrop Module</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Eggdrop Modules</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../modules/index.html">Eggdrop Module Information</a></li>
<li class="toctree-l1"><a class="reference internal" href="../modules/included.html">Modules included with Eggdrop</a></li>
<li class="toctree-l1"><a class="reference internal" href="../modules/writing.html">How to Write an Eggdrop Module</a></li>
<li class="toctree-l1"><a class="reference internal" href="../modules/internals.html">Eggdrop Bind Internals</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">About Eggdrop</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../about/about.html">About Eggdrop</a></li>
<li class="toctree-l1"><a class="reference internal" href="../about/legal.html">Boring legal stuff</a></li>
</ul>
<div role="search">
<h3 style="margin-top: 1.5em;">Search</h3>
<form class="search" action="../search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
</form>
</div>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<p>Textfile Substitutions
Last revised: March 08, 2002</p>
<section id="textfile-substitutions">
<h1>Textfile Substitutions<a class="headerlink" href="#textfile-substitutions" title="Link to this heading">¶</a></h1>
<p>These %-variables can be inserted into help files, the banner, the MOTD,
and other text files. There are four variables that can be used to format
text:</p>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>%b</p></td>
<td><p>display bold</p></td>
</tr>
<tr class="row-even"><td><p>%v</p></td>
<td><p>display inverse</p></td>
</tr>
<tr class="row-odd"><td><p>%_</p></td>
<td><p>display underline</p></td>
</tr>
<tr class="row-even"><td><p>%f</p></td>
<td><p>display flashing via telnet; bold underline via IRC</p></td>
</tr>
</tbody>
</table>
<p>These variables will be interpreted by Eggdrop and replaced by their
respective values:</p>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>%B</p></td>
<td><p>bot’s nickname (i.e. “LamestBot”)</p></td>
</tr>
<tr class="row-even"><td><p>%V</p></td>
<td><p>current Eggdrop version (i.e. “eggdrop v1.10.1”)</p></td>
</tr>
<tr class="row-odd"><td><p>%E</p></td>
<td><p>long form of %V (i.e. “Eggdrop v1.10.1 (C) 1997
Robey Pointer (C) 2010 Eggheads Development Team”)</p></td>
</tr>
<tr class="row-even"><td><p>%C</p></td>
<td><p>channels the bot is on (i.e. “#lamest, #botnetcentral”)</p></td>
</tr>
<tr class="row-odd"><td><p>%A</p></td>
<td><p>whatever is set in the config file by ‘set admin’</p></td>
</tr>
<tr class="row-even"><td><p>%n</p></td>
<td><p>whatever is set in the config file by ‘set network’</p></td>
</tr>
<tr class="row-odd"><td><p>%T</p></td>
<td><p>the current time (i.e. “15:00”)</p></td>
</tr>
<tr class="row-even"><td><p>%N</p></td>
<td><p>the current user’s nickname (i.e. “Robey”)</p></td>
</tr>
<tr class="row-odd"><td><p>%U</p></td>
<td><p>the current operating system the bot is running on</p></td>
</tr>
<tr class="row-even"><td><p>%%</p></td>
<td><p>a percent sign (“%”)</p></td>
</tr>
</tbody>
</table>
<p>You can also encode messages which can only be read by people
with certain flags:</p>
<blockquote>
<div><p>%{+m}
Only masters would see this.
%{-}</p>
<p>%{+A}
Only people with the user flag A see this.
%{-}</p>
<p>%{+b}
This is only displayed to users doing a remote ‘.motd’ from another bot.
%{-}</p>
<p>%{+|m}
Only channel masters would see this.
%{-}</p>
</div></blockquote>
<p>Other variables:</p>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>%{cols=N}</p></td>
<td><p>start splitting output into N columns</p></td>
</tr>
<tr class="row-even"><td><p>%{cols=N/W}</p></td>
<td><p>same as above, but use a screen width of W</p></td>
</tr>
<tr class="row-odd"><td><p>%{end}</p></td>
<td><p>end columnated or restricted (i.e. %{+m}) block</p></td>
</tr>
<tr class="row-even"><td><p>%{center}</p></td>
<td><p>center the following text (70 columns)</p></td>
</tr>
</tbody>
</table>
<blockquote>
<div><p>Copyright (C) 1999 - 2025 Eggheads Development Team</p>
</div></blockquote>
</section>
<div class="clearer"></div>
</div>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
</div>
<div class="footer-wrapper">
<div class="footer">
<div class="left">
<div role="navigation" aria-label="related navigaton">
<a href="tricks.html" title="Advanced Tips"
>previous</a> |
<a href="tcl-commands.html" title="Eggdrop Tcl Commands"
>next</a>
</div>
<div role="note" aria-label="source link">
</div>
</div>
<div class="right">
<div class="footer" role="contentinfo">
© Copyright 2025, Eggheads.
Last updated on Aug 15, 2025.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 8.2.3.
</div>
</div>
<div class="clearer"></div>
</div>
</div>
</body>
</html>
|