Clone this repository and install dependencies
git clone [email protected]:h4x3d/ircbot.git
cd ircbot
npm install
Create config.json
file. See config.template.json for possible options.
The config file consists of environment specific blocks. Environment variable NODE_ENV
determines which block is used. If the environment variable is not present, the development
block will be selected.
all
block is always used and the block selected is merged into it so that it overwrites the values defined in it.
Start your bot
node index.js
Handles joining/leaving channels
Joins to channel
Joins to channel with password
Leaves channel
Leaves channel with part message
Handles sending messages to channel or nickname
Sends a message to given target (channel or nickname)
Handles commands for user authentication and user management
List all commands
List all user
Create a new user
Remove user
Change password
Reset password
Log in
Log out
---
- Install package
git clone [email protected]:h4x3d/ircbot.git
cd ircbot
npm install
-
optional Install and start UnrealIRCd
-
Start bot
node index.js
npm test
only passes if you have ircserver running in port 6667 on your local machine