#(Neptune) Reset a flag at 12 am UTC

33 messages · Page 1 of 1 (latest)

calm cloak
#

Hello, i have this daily rewards script, and i basically give a 24 hour flag once somebody claims it. Now, i just wonder, since it's been requested by some people, is it possible to make the flag reset at 12 AM UTC?

unkempt widget
#

@molten igloo 👀

molten iglooBOT
#
Unknown Command

Unknown command. Consider the help command?

molten iglooBOT
#

(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>

obsidian otter
#

how the hell did pinging it work lmao what

unkempt widget
#

And why does it think it's my post lol

obsidian otter
#

discord api is held together by toothpicks and bubblegum

unkempt widget
#

(Neptune) Reset a flag at 12 am UTC

obsidian otter
#

it thinks your message is the first in the thread

unkempt widget
#

Ah

calm cloak
obsidian otter
#

!c flag

rich zincBOT
# obsidian otter !c flag
Group

core

Syntax

flag [<object>|...] [<name>([<#>])](:<action>)[:<value>] (expire:<time>)

Short Description

Sets or modifies a flag on any flaggable object.

Description

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>]>

obsidian otter
#

!tag next_hour

rich zincBOT
# obsidian otter !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.

Returns

TimeTag

obsidian otter
#

expire:<util.time_now.next_hour_of_day[0]>

calm cloak
#

and this is in UTC?

obsidian otter
#

that's in whatever your server's timezone is

calm cloak
#

looks like it tho

obsidian otter
#

if you want to force utc you can just do time_now.to_utc.next...

calm cloak
#

thanks

#

our server is hosted in the UK so its already in UTC but if it gets moved i believe that'll help

#

ty

serene birchBOT
#
Resolved

Thread closed as resolved.