Social network telegram edition.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Andrey fff12bd597
English localization. Localization fixes.
6 months ago
locales English localization. Localization fixes. 6 months ago
src Bug fixes. 6 months ago
.gitignore English localization. Localization fixes. 6 months ago
README.md Update README.md 6 months ago
bot.js English localization. Localization fixes. 6 months ago
package-lock.json English localization. Localization fixes. 6 months ago
package.json All localization. HTML reply support. YAML is SUS 6 months ago

README.md

The-Creator

Social network telegram edition.

Features

This bot performs all the basic functions of a community/social network. The bot supports fast localization into different languages. It is completely asynchronous, which allows a large number of people to use the bot at the same time.

Commands

help - help with commands.
add - create a post(WebApp editor coming soon).
feed - personal feed(coming soon).
random - get a random post.
profile - view your profile.
viewprofile <user id> - view user profile by id (profile sharing is planned).
search - search for a post by keyword/phrase(the search by authors is not carried out because the telegram user name can be changed, and it is pointless to store it).
The names of all the teams can be freely changed, removed, and new teams can be added.

Locales

Now Russian(ru) and English(en) are available, adding new languages is not difficult due to the fact that they are placed in separate files

Installation

Install all dependencies using npm i and and create a configuration file. Then just launch the bot using node bot.js.

config/default.json

{
  "db": {
    "user": <username>,
    "host": <db ip>,
    "database": <db name>,
    "password": <db password>,
    "port": <port>
  },
  "bot": {
    "token": <telegram bot token>,
    "name": <bot name>
  },
  "interface": {
    "elementsPerPage": <elements, shown on each page, recommended: 10-20>,
    "communityName": <community name>
  },
  "language": <language code, same as the name of the localization file>
}