blob: 373411c26c6e08afafdbb01c2729c579cb8770f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
LLChat = require 'LLChat'
LLAgent = require 'LLAgent'
UI = require 'UI'
local GROUPS = LLAgent.getGroups()
-- Choose one of the groups randomly and send group message
math.randomseed(os.time())
group_info = GROUPS[math.random(#GROUPS)]
LLChat.startGroupChat(group_info.id)
response = UI.popup:alertYesCancel('Started group chat with ' .. group_info.name .. ' group. Send greetings?')
if response == 'OK' then
LLChat.sendGroupIM('Greetings', group_info.id)
end
|