Tilde.chat/tracer: Difference between revisions

From Tildeverse Wiki
(Created page with "{{stub}} A bot that parses tracery grammars found in <code>~/.tracery</code>. == Links == * https://tracery.io * https://tildegit.org/ben/tracer Category:IRC Bots")
 
No edit summary
Line 2: Line 2:


A bot that parses tracery grammars found in <code>~/.tracery</code>.
A bot that parses tracery grammars found in <code>~/.tracery</code>.
== Commands ==
{| class="wikitable"
|+
!command
!description
!pipeable
|-
|<code>!!help</code>
|show help text
|N
|-
|<code>!!list</code>
|print a list of grammars in <code>/home/*/.tracery/*</code>.
|N
|-
|<code>!!source</code>
|print a link to the bot's source code
|N
|-
|<code>!!fuse</code>
|combine two grammars into a new mix
|Y
|-
|<code>!!<grammar></code>
|build a grammar
|Y
|}
Pipeable commands will echo the built grammar with whatever text follows the <code>|</code>
For example:
!!grammar | !toot new :grammar:
Results in:
tooter: !toot new :grammar: <result of parsing tracery>


== Links ==
== Links ==

Revision as of 21:25, 8 July 2022

This article is a stub. You can help Tildeverse Wiki by expanding it. [Learn when to add or remove this header]


A bot that parses tracery grammars found in ~/.tracery.

Commands

command description pipeable
!!help show help text N
!!list print a list of grammars in /home/*/.tracery/*. N
!!source print a link to the bot's source code N
!!fuse combine two grammars into a new mix Y
!!<grammar> build a grammar Y

Pipeable commands will echo the built grammar with whatever text follows the |

For example:

!!grammar | !toot new :grammar:

Results in:

tooter: !toot new :grammar: <result of parsing tracery>

Links