This repository has been archived on 2025-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
natsuko/test_db.py
2023-05-03 19:58:19 +03:00

52 lines
1.8 KiB
Python
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client['Koteika']
strings = db['strings']
ru = {
"lang": "RU",
"commands": {
"HTiP": {
"brief": "Кодирует текст в пикчу",
"subcommand": "Опишите режим работы комманды!",
"picNotExists": 'Мой великий взор не видит в этом сообщении то, чего мне надо. '
'Уходи и возвращайся с изображением!',
"w": {
"brief": "Запись текста в пикчу",
"textNotExists": "А что надо записать?"
},
"r": {
"brief": "Чтение текста из пикчи"
}
},
"hentai": {
"brief": "Показывает взросло-деловой контент. Скука",
"notFound": "Такого нет. Можешь воспользоваться `{}hentai help`",
"notNSFW": "Тут низя"
}
}
}
en = {
"lang": "EN",
"commands": {
"HTiP": {
"brief": "Encodes text to the pic",
"subcommand": "You didn't choose mode of the command!",
"picNotExists": 'My great eye does not see what I need in this message. '
'Go away and come back with a picture!',
"w": {
"brief": "Writing text to the pic",
"textNotExists": "What you need to write?"
},
"r": {
"brief": "Reading text from the pic"
}
}
}
}
strings.insert_many([ru, en])