Telegram bot matching you with a random person of desired sex speaking on your language(s). Chat with anonymous strangers here. Rand Talk was written on Python 3.6 and telepot and uses MariaDB to store users' preferences. Rand Talk's interface was translated on several languages. You're able to send any messages except replies and forwarded messages. Rand Talk rewards you with bonuses for people you invite using your individual link. To get this link, use @RandTalkBot as inline bot. The bot collects stats regularly. Rand Talk rewards you with more bonuses for the people of rare sex.
In @BotFather compatible format:
begin - Begin looking for next stranger
end - End talking
setup - Choose languages and sex
help - Help for Rand Talk
Admins specified at admins configuration property are able to use the following additional commands:
clear TELEGRAM_IDs — "Clear" specified users. Stop their coversations or clear "looking for partner" flag.
pay TELEGRAM_ID AMOUNT GRATITUDE — Pay AMOUNT bonuses to TELEGRAM_ID and notify her with GRATITUDE.
- Reports
- Replies
- Customizable greetings message
- /oops command to ask your recent partner to connect together again
We're using Docker Compose to deploy Rand Talk's Docker container.
Create configuration/db_root_password and configuration/db_password files containing database passwords and configuration/telegram_token containing Telegram bot's token. After that write configuration/configuration.json file like that:
{
"admins": [31416, 271828],
"database": {
"host": "db",
"name": "randtalkbot",
"user": "randtalkbot",
},
"logging": {
"version": 1,
"formatters": {
"simple": {
"class": "logging.Formatter",
"format": "%(asctime)s - %(levelname)s - %(name)s - %(message)s"
}
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"level": "DEBUG",
"formatter": "simple"
}
},
"loggers": {
"randtalkbot": {
"level": "DEBUG",
"handlers": []
},
"peewee": {
"level": "DEBUG",
"handlers": []
}
},
"root": {
"level": "DEBUG",
"handlers": ["console", "email"]
}
}
}Where:
admins— list of admins' Telegram IDs. Admins are able to use extended list of bot commands. Optional. Default is[].logging— logging setup as described in this howto.
Fetch Docker Compose file:
wget https://raw.githubusercontent.com/quasiyoke/RandTalkBot/master/docker-compose.ymlNow you may run Rand Talk:
docker-compose up -dWe are glad to see your contributions to Rand Talk. Our reward starts from 10 bonuses for you.
We are interested in growing the number of Rand Talk's translations. You can help in doing that by translating some of .po files in randtalkbot/locale directory on your language. Feel free to send this files to [email protected]
Here's the list of bot translators. Take your chance to be here!
-
English. Pyotr Ermishkin [email protected]
-
German. Jonas Zohren [email protected]
-
Italian
- Marco Giustetto [email protected]
- Leonardo Guida [email protected]
- Benedetta Facchinetti [email protected]
- Martin Ligabue [email protected]
-
Russian. Pyotr Ermishkin [email protected]
-
Spanish
- Benedetta Facchinetti [email protected]
- Martin Ligabue [email protected]
Use verboselib to extract new messages:
verboselib-manage.py extract -d randtalkbot -a -o randtalkbot/locale -i libAnd to compile them:
verboselib-manage.py compile -d randtalkbot/localeTo comfortably inject source code changes to the Docker container use another Docker Compose file:
docker-compose --file docker-compose.dev.yml upLaunch tests and observe code coverage:
coverage run --source=randtalkbot -m unittest
coverage report -mLaunch some specific test:
python -m unittest tests.test_stranger.TestStrangerPlease notice that tests' source code is also covered with codestyle checks but requirements for it are softer:
python setup.py lint