IRCBot.text

From IRCBotWiki

Jump to: navigation, search

Contents

Overview

For some reason or another, documentation for ircbot.text has never been written. I am taking this opportunity to do that now.

ircbot.text contains 5 types of entries:

1. Comments
2. Includes
3. Messages
4. Custom Channel Commands
5. Command Aliases

Comments

Those lines beginning with #, /, or ;, as well as blank lines. The text loader ignores these lines completely and skips over them.

Example:
; This is a comment
# This is also a comment

Includes

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.

Example:
#include "ircbot2.text"

Messages

Messages are well, messages, used by the bot that you can customize to your own station, look, etc. Each message is defined in ircbot.text so you can look at them and edit them if you want.

Example:
RadioOn=Demo Radio is now ONLINE!

Custom Channel Commands

This allows you to create custom channel commands (aka triggers) users can use in your channel. Commands can be made to message something to a user, op someone, etc. You can also put a #/ in front of the command to restrict it to a certain user level or above.

Example:
!hi=NOTICE %nick :Hello %nick, I'm %me
!listeners=4/PRIVMSG %chan :Current listener count: %clients

Command Aliases

This will let you create a command that will act like another command. For example, if you wanted a command like !next, but instead of !next you wanted !thissucks

Example:
!thissucks=!next
Personal tools