diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..55d0349 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.idea + +config.yaml + +.DS_Store \ No newline at end of file diff --git a/config.sample.yaml b/config.sample.yaml new file mode 100644 index 0000000..a49568c --- /dev/null +++ b/config.sample.yaml @@ -0,0 +1,6 @@ +database: + user: 'DATABASE_USER' + password: 'DATABASE_PASSWORD' + host: 'DATABASE_HOST' + database: 'DATABASE_NAME' +token: '6263165538:AAGSbV8cAfL4Gxz08B_VVrxETMhzAez78wc' diff --git a/database/data/schema.sql b/database/data/schema.sql new file mode 100644 index 0000000..de0939e --- /dev/null +++ b/database/data/schema.sql @@ -0,0 +1,14 @@ +CREATE TABLE message +( + message_id BIGINT NOT NULL, + chat_id BIGINT NOT NULL, + reaction_count INT DEFAULT 0 +); + +CREATE TABLE chat +( + chat_id BIGINT NOT NULL, + channel_id BIGINT, + min_reaction_count INT DEFAULT 5, + emoji_list TEXT[] DEFAULT array['⭐'] +); \ No newline at end of file