From d8d50d1525dd0e8840c6aa6714e373f877424751 Mon Sep 17 00:00:00 2001 From: leca Date: Sat, 3 Aug 2024 12:18:42 +0300 Subject: [PATCH] minor changes --- README.md | 4 ++-- messages.json | 6 +++--- scheme.psql | 2 +- src/utils.js | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 721ab99..f4fe571 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# daivinchik +# heart2heart -Matrix bot for new meetings \ No newline at end of file +Matrix bot for new meetings diff --git a/messages.json b/messages.json index 51e165d..ed16d06 100644 --- a/messages.json +++ b/messages.json @@ -6,7 +6,7 @@ "name": "Write a name of your profile. Not longer than 32 symbols", "description": "Write a description of your profile. Not longer than 512 symbols.", "age": "Write your age. People yonger than 14 are disallowed to use the service.", - "gender": "Write your gender: Male or female.", + "sex": "Write your sex: Male or female.", "interest": "Write who you are interested to talk to? Write 'both', 'male', or 'female'.", "pictures": "Send up to five pictures that will be shown in your profile. Write any text message when you are done.", "done": "Phew! You are done filling your profile! Now I'll start showing you others profiles!", @@ -16,9 +16,9 @@ "errors": { "notadm": "This room is not a DM (direct or private messages). You should invite me in a DM! By the way, I support encrypted rooms! Bye and see you in DM!", "toobig": "Sorry! The length of what you have written here is bigger than I expected! If you beleive that it is an error, please, file an issue on my git: https://git.foxarmy.org/leca/daivinchik. Otherwise, write something a little bit smaller! Thank you!", - "tooyoung": "Sorry! You are too young for this! Please, return when you'll turn at least 14! Thank you and good bye!", + "tooyoung": "Sorry! You are too young for this! Please, come back when you'll turn at least 14! Thank you and good bye!", "toomuch": "You have loaded more that 5 pictures. I'll not upload that. Going to the next step...", - "twogenders": "There are only two genders! Please, choose your biological one.", + "twosexes": "There are only two sexes! Please, choose your biological one.", "didntunderstand": "I cannot understand you answer. Please, read my question again and answer!" } } \ No newline at end of file diff --git a/scheme.psql b/scheme.psql index 37d4bfe..69375f3 100644 --- a/scheme.psql +++ b/scheme.psql @@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS users( pictures_urls TEXT[] DEFAULT NULL, name VARCHAR(32) DEFAULT NULL, age SMALLINT DEFAULT NULL, - gender BOOLEAN, -- 1 means male + sex BOOLEAN, -- 1 means male interest VARCHAR(6), -- male, female or both description VARCHAR(512) DEFAULT NULL, country VARCHAR(64) DEFAULT NULL, diff --git a/src/utils.js b/src/utils.js index fc67fa3..47d8a31 100644 --- a/src/utils.js +++ b/src/utils.js @@ -17,7 +17,7 @@ export const readConfig = () => { if (!fs.existsSync(configPath)) { - fs.writeFileSync(configPath, + fs.writeFileSync(configPath, `{ "homeserverURL": "https://matrix.org/", "token": "Super secret token! Do not show to anyone! Even your mum! ;)" @@ -30,7 +30,7 @@ export const readConfig = () => { } return JSON.parse(fs.readFileSync(configPath) -) + ) } export const readMessages = () => {