aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")
+
+