Initial commit

This commit is contained in:
파링 2026-01-05 22:54:32 +09:00
commit 8c6f7d4379
Signed by: paring
SSH key fingerprint: SHA256:8uCHhCpn/gVOLEaTolmbub9kfM6XBxWkIWmHxUZoWWk
21 changed files with 4184 additions and 0 deletions

View file

@ -0,0 +1,9 @@
create table
guilds (id text not null primary key, script text null);
create table
messages (
guild_id text not null references guilds (id),
message_id text not null,
primary key (guild_id, message_Id)
);

View file

@ -0,0 +1,2 @@
alter table messages
add column counter_id text not null;

View file

@ -0,0 +1,2 @@
alter table messages
add column counter_channel_id text not null;

View file

@ -0,0 +1,5 @@
-- DELETE ALL MESSAGES!
delete from messages;
alter table messages
drop column counter_channel_id;

View file

@ -0,0 +1,7 @@
create table
webhooks (
guild_id text not null references guilds (id),
channel_id text not null primary key,
webhook_id text not null,
webhook_token text not null
);

View file

@ -0,0 +1,5 @@
-- DELETE ALL MESSAGES!
delete from messages;
alter table messages
add column counter_channel_id text not null;