Skip to content

The successor to Alanaktion/chatbot, an XMPP chat bot

Notifications You must be signed in to change notification settings

digideskio/chatbot2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatbot2

Requirements

PHP 5.4 or higher.

Installation

Clone the repo or download the zip.

Configuration

Copy config-sample.php to config.php and replace the configuration options with the ones for your server.

Usage

Start the bot by running php bot.php (or ./bot.php on unix-like environments) from the command line.

Use the bot by running commands from a chat room the bot is a member of, or by messaging the bot directly. All commands start with a hash (#), but the hash can be omitted if messaging the bot directly.

Run #help to list all available commands.

Running ## will re-run the last command the bot received with the same parameters.

Adding Commands

New commands can be added to the commands/ directory, and should contain a single returned function. See commands/say.php for a basic example.

Command help messages can be added to the command-help/ directory. They should match the command name, and have a .txt file extension.

About

The successor to Alanaktion/chatbot, an XMPP chat bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 97.6%
  • Python 1.4%
  • Makefile 1.0%