mirror of
https://github.com/SantaSpeen/RoyaltyIT-tg-bot.git
synced 2026-02-16 10:30:45 +00:00
42 lines
1.6 KiB
Markdown
42 lines
1.6 KiB
Markdown
# RoyaltyIT-tg-bot
|
||
<p align="center">
|
||
<a href="https://github.com/SantaSpeen/RoyaltyIT-tg-bot/blob/master/LICENSE"><img alt="GitHub license" src="https://img.shields.io/github/license/SantaSpeen/RoyaltyIT-tg-bot?style=for-the-badge"></a>
|
||
<a href="https://github.com/SantaSpeen/RoyaltyIT-tg-bot/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/SantaSpeen/RoyaltyIT-tg-bot?style=for-the-badge"></a>
|
||
<a href="https://github.com/SantaSpeen"><img src="https://img.santaspeen.ru/github/magic.svg" alt="magic"></a>
|
||
<br/>
|
||
</p>
|
||
|
||
Этот бот создан специально для: [@RoyaltyProject](https://t.me/royaltyproject)
|
||
|
||
### Установка:
|
||
|
||
```shell
|
||
# Clone repository
|
||
$ git clone https://github.com/SantaSpeen/RoyaltyIT-tg-bot.git
|
||
# Change directory
|
||
$ cd src
|
||
# Install requirements
|
||
$ python3 -m pip install -r requirements.txt
|
||
# Create configuration file
|
||
# Create sqlite database from src/sl3.sql
|
||
# Then start the bot
|
||
$ python3 main.py
|
||
```
|
||
|
||
### config.json example
|
||
|
||
```json
|
||
{
|
||
"bot_token": "BOT_TOKEN",
|
||
"remote_chat": -123456789,
|
||
"new_member_message": "Привет, @%(username)-s!\nДобро пожаловать в наше IT - сообщество.\nЧтобы люди могли в будущем найти тебя, напиши вступительное сообщение о себе с хештегом %(<)-s#знакомство%(</)-s. Приятного времяпрепровождения!",
|
||
"start_message": "start message",
|
||
"static_message": {
|
||
"help": "Я бот, ничем не могу помочь, сорян..."
|
||
}
|
||
}
|
||
```
|
||
|
||
### License
|
||
|
||
License: MIT |