From 1ee9955c9568294c43094565359083bbb371af27 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 19 Jun 2015 12:07:16 +0200 Subject: readme: add lua example --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 75be8ca..339f509 100644 --- a/README.md +++ b/README.md @@ -46,3 +46,14 @@ For every message that goes to the channel, sircbot will run all scripts in /etc/sircbot.d/<#channel>/ with sender, message and channel name as arguments. +Sending message with Lua +------------------------ + +Example script which explains how to send a message with Lua + + local sircbot = require('sircbot') + local client = sircbot.connect('#channel') + + client:send("hello") + + -- cgit v1.2.3