minor changes

This commit is contained in:
leca 2024-08-03 12:18:42 +03:00
parent 29cdbbbddb
commit d8d50d1525
4 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,3 @@
# daivinchik # heart2heart
Matrix bot for new meetings Matrix bot for new meetings

View File

@ -6,7 +6,7 @@
"name": "Write a name of your profile. Not longer than 32 symbols", "name": "Write a name of your profile. Not longer than 32 symbols",
"description": "Write a description of your profile. Not longer than 512 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.", "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'.", "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.", "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!", "done": "Phew! You are done filling your profile! Now I'll start showing you others profiles!",
@ -16,9 +16,9 @@
"errors": { "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!", "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!", "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...", "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!" "didntunderstand": "I cannot understand you answer. Please, read my question again and answer!"
} }
} }

View File

@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS users(
pictures_urls TEXT[] DEFAULT NULL, pictures_urls TEXT[] DEFAULT NULL,
name VARCHAR(32) DEFAULT NULL, name VARCHAR(32) DEFAULT NULL,
age SMALLINT DEFAULT NULL, age SMALLINT DEFAULT NULL,
gender BOOLEAN, -- 1 means male sex BOOLEAN, -- 1 means male
interest VARCHAR(6), -- male, female or both interest VARCHAR(6), -- male, female or both
description VARCHAR(512) DEFAULT NULL, description VARCHAR(512) DEFAULT NULL,
country VARCHAR(64) DEFAULT NULL, country VARCHAR(64) DEFAULT NULL,

View File

@ -17,7 +17,7 @@ export const readConfig = () => {
if (!fs.existsSync(configPath)) { if (!fs.existsSync(configPath)) {
fs.writeFileSync(configPath, fs.writeFileSync(configPath,
`{ `{
"homeserverURL": "https://matrix.org/", "homeserverURL": "https://matrix.org/",
"token": "Super secret token! Do not show to anyone! Even your mum! ;)" "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) return JSON.parse(fs.readFileSync(configPath)
) )
} }
export const readMessages = () => { export const readMessages = () => {