<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.shoutirc.com/index.php?action=history&amp;feed=atom&amp;title=IRCBot.text</id>
	<title>IRCBot.text - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.shoutirc.com/index.php?action=history&amp;feed=atom&amp;title=IRCBot.text"/>
	<link rel="alternate" type="text/html" href="https://wiki.shoutirc.com/index.php?title=IRCBot.text&amp;action=history"/>
	<updated>2026-04-29T00:06:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.shoutirc.com/index.php?title=IRCBot.text&amp;diff=4482&amp;oldid=prev</id>
		<title>Indy at 19:59, 17 November 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.shoutirc.com/index.php?title=IRCBot.text&amp;diff=4482&amp;oldid=prev"/>
		<updated>2013-11-17T19:59:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:IRCBot Examples|{{PAGENAME}}]]&lt;br /&gt;
==Overview==&lt;br /&gt;
For some reason or another, documentation for ircbot.text has never been written. I am taking this opportunity to do that now.&lt;br /&gt;
&lt;br /&gt;
ircbot.text contains 5 types of entries:&lt;br /&gt;
 1. Comments&lt;br /&gt;
 2. Includes&lt;br /&gt;
 3. Messages&lt;br /&gt;
 4. Custom Channel Commands&lt;br /&gt;
 5. Command Aliases&lt;br /&gt;
&lt;br /&gt;
==Comments==&lt;br /&gt;
Those lines beginning with #, /, or ;, as well as blank lines. The text loader ignores these lines completely and skips over them.&lt;br /&gt;
&lt;br /&gt;
 Example:&lt;br /&gt;
 ; This is a comment&lt;br /&gt;
 # This is also a comment&lt;br /&gt;
&lt;br /&gt;
==Includes==&lt;br /&gt;
The include line let you include another .text file for parsing. This is useful if you want to break up your .text file in to sections.&lt;br /&gt;
&lt;br /&gt;
 Example:&lt;br /&gt;
 #include &amp;quot;ircbot2.text&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Messages==&lt;br /&gt;
Messages are well, messages, used by the bot that you can customize to your own station, look, etc.&lt;br /&gt;
Each message is defined in ircbot.text so you can look at them and edit them if you want.&lt;br /&gt;
&lt;br /&gt;
 Example:&lt;br /&gt;
 RadioOn=Demo Radio is now ONLINE!&lt;br /&gt;
&lt;br /&gt;
==Channel-Specific Messages==&lt;br /&gt;
The following messages you can set customized versions for certain channels: Song/DJNew/DJChange/RadioOn/RadioOff/TopicDjChange/TopicOffline/TopicOnline/OnJoin.&amp;lt;br /&amp;gt;&lt;br /&gt;
All you do is append _netno_#channel to the default name to specify a custom message.&lt;br /&gt;
&lt;br /&gt;
 Example:&lt;br /&gt;
 Song_0_#testing=Custom Song Info Line for #testing: %song&lt;br /&gt;
&lt;br /&gt;
==Custom Commands==&lt;br /&gt;
This allows you to create custom channel commands (aka triggers) users can use in your channel or via PM.&lt;br /&gt;
Commands can be made to message something to a user, op someone, etc.&lt;br /&gt;
You can also put a [[User Flags|userflag]]/ in front of the command to restrict it to users with a certain user flag.&lt;br /&gt;
You can define a command with the prefix !, ?, or @. ! triggers can be used in-channel only, ? can be used via PM only, and @ can be used in-channel or via PM.&lt;br /&gt;
&lt;br /&gt;
 Example Channel Commands:&lt;br /&gt;
 !hi=NOTICE %nick :Hello %nick, I&amp;#039;m %me&lt;br /&gt;
 !listeners=x/PRIVMSG %chan :Current listener count: %clients&lt;br /&gt;
&lt;br /&gt;
 Example PM Command:&lt;br /&gt;
 ?test=PRIVMSG %nick :Hello to you too&lt;br /&gt;
&lt;br /&gt;
 Example Channel/PM Command:&lt;br /&gt;
 @test=PRIVMSG %nick :Hello to you too&lt;br /&gt;
&lt;br /&gt;
==Using Command Parameters==&lt;br /&gt;
You can use $# in ircbot.text-based commands. It is just like mIRC scripting except $0 is the trigger instead of how many parameters were passed.&amp;lt;br /&amp;gt;&lt;br /&gt;
From the mIRC Help File: You can use the $1 $2 ... $N identifiers to refer to individual parameters in a line. You can also use $N- to refer to parameters N and onwards, and $N-M to refer to parameters $N through to $M. So to refer to a whole line, you would use $0-.&lt;br /&gt;
&lt;br /&gt;
==Command Aliases==&lt;br /&gt;
This will let you create a command that will act like another command.&lt;br /&gt;
For example, if you wanted a command like !next, but instead of !next you wanted !thissucks&lt;br /&gt;
&lt;br /&gt;
 Example:&lt;br /&gt;
 !thissucks=!next&lt;br /&gt;
&lt;br /&gt;
You can also specify default parameters to be used:&lt;br /&gt;
&lt;br /&gt;
 Example:&lt;br /&gt;
 !kickdj=!autodj-stop now&lt;br /&gt;
&lt;br /&gt;
This would make so if someone typed:&lt;br /&gt;
 &amp;#039;!kickdj&amp;#039; the bot would see it as &amp;#039;!autodj-stop now&amp;#039;&lt;br /&gt;
 &amp;#039;!kickdj blah&amp;#039; the bot would see it as &amp;#039;!autodj-stop blah&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{{radiobot}}&lt;/div&gt;</summary>
		<author><name>Indy</name></author>
	</entry>
</feed>