diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-19 12:07:16 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-19 12:07:16 +0200 |
commit | 1ee9955c9568294c43094565359083bbb371af27 (patch) | |
tree | 5daee1633bfd22cd1e9c9c024c70b57170094fb7 /README.md | |
parent | 88ce331194155bddbdf9a59e9f97473b8e2597b2 (diff) | |
download | sircbot-1ee9955c9568294c43094565359083bbb371af27.tar.bz2 sircbot-1ee9955c9568294c43094565359083bbb371af27.tar.xz |
readme: add lua example
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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") + + |