Updated README
This commit is contained in:
parent
4363ef9d78
commit
1f7890dc53
69
README.md
69
README.md
@ -27,35 +27,53 @@ You can see config file with all the comments below:
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"locale": "uk", # locale file. it's a json located under locale folder
|
"locale": "uk",
|
||||||
"debug": false, # whether config_debug.json should be used instead of config.json
|
"debug": false,
|
||||||
"owner": 0, # telegram ID of a bot owner
|
"owner": 0,
|
||||||
"age_allowed": 0, # minimum age of user that submits application
|
"bot_id": 0,
|
||||||
"birthdays_notify": true, # notify admin group about birthdays
|
"age_allowed": 0,
|
||||||
"birthdays_time": "09:00", # server time when to notify about birthdays
|
"birthdays_notify": true,
|
||||||
"api": "http://example.com", # API server's external address
|
"birthdays_time": "09:00",
|
||||||
"admin_group": 0, # telegram ID of a admin's group
|
"api": "http://example.com",
|
||||||
"destination_group": 0, # telegram ID of a user's group
|
"inline_preview_count": 7,
|
||||||
"admins": [], # list of telegram ID's of users that are admins
|
"admin_group": 0,
|
||||||
|
"destination_group": 0,
|
||||||
|
"remove_application_time": -1,
|
||||||
|
"admins": [],
|
||||||
"bot": {
|
"bot": {
|
||||||
"api_id": 0, # telegram API ID
|
"api_id": 0,
|
||||||
"api_hash": "", # telegram API hash
|
"api_hash": "",
|
||||||
"bot_token": "" # telegram bot's token
|
"bot_token": ""
|
||||||
},
|
},
|
||||||
"logging": {
|
"logging": {
|
||||||
"size": 512, # size of log file in kbytes after which it should be rotated
|
"size": 512,
|
||||||
"location": "logs" # location of logs folder. can be relative or absolute
|
"location": "logs"
|
||||||
},
|
},
|
||||||
"locations": {
|
"locations": {
|
||||||
"data": "data", # location of data folder. can be relative or absolute
|
"data": "data",
|
||||||
"locale": "locale" # location of locale folder. can be relative or absolute
|
"cache": "cache",
|
||||||
|
"locale": "locale"
|
||||||
},
|
},
|
||||||
"commands": { # user command and its description
|
"commands": {
|
||||||
"reapply": "Fill the application again"
|
"rules": "Check out the rules",
|
||||||
|
"reapply": "Resubmit the application"
|
||||||
},
|
},
|
||||||
"commands_admin": { # admin commands and their description
|
"commands_admin": {
|
||||||
"reboot": "Restart the bot",
|
"reboot": "Restart the bot",
|
||||||
"applications": "Get all applications as JSON"
|
"message": "Send a message",
|
||||||
|
"warnings": "Check user's warnings",
|
||||||
|
"application": "Check user's application",
|
||||||
|
"applications": "Retrieve all applications as a JSON"
|
||||||
|
},
|
||||||
|
"commands_group_admin": {
|
||||||
|
"reboot": "Restart the bot",
|
||||||
|
"message": "Send a message",
|
||||||
|
"warnings": "Check user's warnings",
|
||||||
|
"application": "Check user's application",
|
||||||
|
"applications": "Retrieve all applications as a JSON"
|
||||||
|
},
|
||||||
|
"commands_group_destination": {
|
||||||
|
"warn": "Warn a user"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -64,11 +82,6 @@ After all of that you're good to go! Happy using :)
|
|||||||
|
|
||||||
## To-Do
|
## To-Do
|
||||||
|
|
||||||
* [x] Check if link belongs to admin
|
* [ ] Complete messenger between user and admins
|
||||||
* [x] Inline query user's application
|
* [ ] Check sponsorship on Holo girls
|
||||||
* [x] Get applications .json
|
|
||||||
* [ ] Get application by id and user_id
|
* [ ] Get application by id and user_id
|
||||||
* [x] Age as a DD.MM.YYYY
|
|
||||||
* [x] Notify about upcoming birthdays
|
|
||||||
* [x] Change the application data
|
|
||||||
* [x] Check if user is already in group
|
|
Reference in New Issue
Block a user