Closed Elanis closed 1 year ago
This PR adds API to use Scheduled events and create them if needed when a Twitch stream begins.
Changelog:
Events examples:
Tested with a custom command as I can't test real twitch notifications.
The custom command:
self:RegisterCommand({ Name = "testa", Silent = false, Args = { }, Help = "Test things", Func = function(commandMessage, channel) commandMessage:reply("ok") commandMessage.guild:createScheduledEvents( enums.scheduledEventsEntityTypes.external, string.format("https://twitch.tv/%s", "elanis42"), "Test title", enums.scheduledEventsPrivacyLevel.guild_only, os.date("!%Y-%m-%dT%TZ", os.time() + 1), os.date("!%Y-%m-%dT%TZ", os.time() + 3600) ) end })
This PR adds API to use Scheduled events and create them if needed when a Twitch stream begins.
Changelog:
Events examples:
Tested with a custom command as I can't test real twitch notifications.
The custom command: