aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-06-10 01:13:23 +0000
committerterminaldweller <devi@terminaldweller.com>2024-06-10 01:13:23 +0000
commitd1af44bed4e714799b7dedab7cb2909ec7dffb8b (patch)
treed9349e463203405239956eb66c80ec1a61486ae9 /README.md
parentfixes #33 (diff)
downloadmilla-d1af44bed4e714799b7dedab7cb2909ec7dffb8b.tar.gz
milla-d1af44bed4e714799b7dedab7cb2909ec7dffb8b.zip
added a new lua function, query_db
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 393ea5b..a450612 100644
--- a/README.md
+++ b/README.md
@@ -550,6 +550,8 @@ There are a few libraries written in go specifically for gopher-lua that are ava
An example plugin is provided under `plugins/rss.lua`.<br/>
```yaml
+period: 3600
+channel: "#rssfeed"
rssfeeds:
- name: "one"
url: "https://www.youtube.com/feeds/videos.xml?channel_id=UCaiL2GDNpLYH6Wokkk1VNcg"
@@ -677,6 +679,10 @@ milla.send_gemini_request(prompt)
milla.send_chatgpt_request(prompt)
```
+```lua
+milla.query_db(query)
+```
+
The example rss plugin, accepts a yaml file as input, reeds the provided rss feeds once, extracts the title, author name and link to the resource, sends the feed over to the `#rssfeed` irc channel and exits.<br/>
More of milla's functionality will be available through milla's lua module over time.<br/>'