The rules lived in a channel nobody but a staff member with a shell could edit, and the welcome message pointed at it. They are now written in markdown under Settings and published as a single pinned embed, and a new publication deletes the message the bot posted last time instead of piling copies up in the channel.
14 lines
478 B
SQL
14 lines
478 B
SQL
-- The rules message published from the dashboard (M19)
|
|
--
|
|
-- The bot republishes the rules by deleting the previous message and sending
|
|
-- the new one, so it has to remember which message it owns. Without this the
|
|
-- channel would slowly fill with outdated copies.
|
|
|
|
CREATE TABLE IF NOT EXISTS rules_messages (
|
|
guild_id TEXT PRIMARY KEY,
|
|
channel_id TEXT NOT NULL,
|
|
message_id TEXT NOT NULL,
|
|
updated_by TEXT,
|
|
updated_at TEXT NOT NULL DEFAULT (datetime('now'))
|
|
);
|