Merge pull request #1 from Redume/master

Master
This commit is contained in:
Danil 2024-12-05 21:23:21 +03:00 committed by GitHub
commit 6357363f3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 0 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
.idea
config.yaml
.DS_Store

6
config.sample.yaml Normal file
View file

@ -0,0 +1,6 @@
database:
user: 'DATABASE_USER'
password: 'DATABASE_PASSWORD'
host: 'DATABASE_HOST'
database: 'DATABASE_NAME'
token: '6263165538:AAGSbV8cAfL4Gxz08B_VVrxETMhzAez78wc'

14
database/data/schema.sql Normal file
View file

@ -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['']
);