Implement resolving channel names
This commit is contained in:
@@ -63,7 +63,11 @@ local function Yap()
|
||||
return
|
||||
end
|
||||
|
||||
SendChatMessage(shared.config.message, shared.config.channel, nil, shared.config.channelData)
|
||||
local data = shared.config.channelData
|
||||
if shared.config.channel == "CHANNEL" and not tonumber(shared.config.channelData) then
|
||||
data = GetChannelId(shared.config.channelData)
|
||||
end
|
||||
SendChatMessage(shared.config.message, shared.config.channel, nil, data)
|
||||
|
||||
if not shared.config.interval or shared.config.interval <= 0 then
|
||||
print("Yapper has no interval set, quitting (%s)", tostring(shared.config.interval))
|
||||
|
Reference in New Issue
Block a user