Skip to content

Friend time#6

Open
iaxx wants to merge 2 commits into
vaindil:masterfrom
iaxx:friend-time
Open

Friend time#6
iaxx wants to merge 2 commits into
vaindil:masterfrom
iaxx:friend-time

Conversation

@iaxx

@iaxx iaxx commented Jun 27, 2026

Copy link
Copy Markdown

/friendtime now: Lists all configured local times for the channel/thread. Uses native user mentions. Entries are sorted chronologically from earliest to latest local time.
/friendtime add [timezone] [user]: Registers/updates timezone. Validates IANA timezone IDs (e.g. Europe/Bucharest, America/New_York). Regular users can only register themselves, while administrators can pass the optional user parameter.
/friendtime remove [user]: Deregisters timezone. Administrators can target other users.

Needs this in the DB.

CREATE TABLE friend_time (
	id int4 NOT NULL GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
	guild_id int8 NOT NULL,
	channel_id int8 NOT NULL,
	user_id int8 NOT NULL,
	timezone varchar(100) NOT NULL,
	CONSTRAINT uq_friend_time UNIQUE (guild_id, channel_id, user_id)
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant