aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-06-19 12:07:16 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-19 12:07:16 +0200
commit1ee9955c9568294c43094565359083bbb371af27 (patch)
tree5daee1633bfd22cd1e9c9c024c70b57170094fb7 /README.md
parent88ce331194155bddbdf9a59e9f97473b8e2597b2 (diff)
downloadsircbot-1ee9955c9568294c43094565359083bbb371af27.tar.bz2
sircbot-1ee9955c9568294c43094565359083bbb371af27.tar.xz
readme: add lua example
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
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")
+
+