#(Neptune) Reset a flag at 12 am UTC
33 messages · Page 1 of 1 (latest)
@molten igloo 👀
(Ayahehim) Reset a flag at 12 am UTC
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
how the hell did pinging it work lmao what
And why does it think it's my post lol
discord api is held together by toothpicks and bubblegum
(Neptune) Reset a flag at 12 am UTC
it thinks your message is the first in the thread
Ah
pfft
anyway, that's what expire is for
!c flag
core
flag [<object>|...] [<name>([<#>])](:<action>)[:<value>] (expire:<time>)
Sets or modifies a flag on any flaggable object.
The flag command sets or modifies custom data values stored on any flaggable object (the server, a player/NPC/entity, a block location, ...).
See also !language flag system.
This command supports data actions, see !language data actions.
Flags by default are added permanently (or for the lifetime of the object they're attached to).
You can optionally specify a system time the flag will expire at, using either a DurationTag or a TimeTag.
If a DurationTag is used, it will be equivalent to: <util.time_now.add[<your_duration_here>]>
!tag next_hour
Returns the timetag that represents the next time the specified hour number will be hit.
For example, if the input hour is '14', and the original TimeTag is 5 AM, the return will be 2 PM today.
If the input is '14' and the TimeTag is 5 PM, the return will be 2 PM tomorrow.
The minute/second/millisecond will be zeroed.
If the input hour is 5, and the TimeTag is at 5 AM, will return the next day.
TimeTag
expire:<util.time_now.next_hour_of_day[0]>
and this is in UTC?
that's in whatever your server's timezone is
looks like it tho
if you want to force utc you can just do time_now.to_utc.next...
thanks
our server is hosted in the UK so its already in UTC but if it gets moved i believe that'll help
ty
Thread closed as resolved.