Skip to main content

Interval

This command triggers the Main CC to post a new QOTD on an interval.

For more information about the QOTD system, see the overview page.

Trigger

Type: Hourly Interval
Interval: 24 Channel: (any channel where YAGPDB has Send Message permission)

danger

You must set a channel for this command or it will not function. It can be any channel where YAGPDB has Send Message permission.

note

Before saving this command, disable it, and do not enable again until after you have completed the interactive setup.

Configuration

All configuration is done via the qotd setup command. Only run the setup command after installing all four CCs in the QOTD system. See the QOTD system overview for more information.

Code

{{/*
Triggers daily QOTD posting.
See <https://yagpdb-cc.github.io/fun/qotd/interval> for more information.

Author: SoggySaussages <https://github.com/SoggySaussages>
*/}}

{{ $config := dbGet 0 "qotd-config" }}
{{ with $config }}
{{ $config = .Value }}
{{ else }}
Something went wrong, please run `{{ .ServerPrefix }}qotd setup` again.
{{ return }}
{{ end }}

{{ execCC $config.MainCC nil 0 ( sdict "Type" "push" ) }}

Author

This custom command was written by @SoggySaussages.