File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030# :memo : Версии
3131
3232### :heavy_check_mark : ` Последняя версия `
33- ## ** Версия v1.0.0**
33+ ## ** Версbя v1.0.0**
3434
3535### Добавлено
3636- 7 команд
Original file line number Diff line number Diff line change 1- [Main ]
1+ [main ]
22author = GorAlex97
33version = v1.0.0
44source = https://github.com/GORAlexComp/ServerStatusBot
Original file line number Diff line number Diff line change 11pyTelegramBotAPI==4.7.1
22python-dotenv==0.21.0
3+ psutil
Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
12'''
23Author : GORAlex Comp
34Date : 01/11/2022
1011from dotenv import load_dotenv
1112
1213config = configparser .ConfigParser () # make parser object
13- config .read ("config.ini " ) # read config
14+ config .read ("config.cfg " ) # read config
1415
1516# load API_KEY from .env
1617# put your API_KEY in ".env" file
2526@bot .message_handler (commands = ['start' ,'help' ])
2627def help (message ):
2728 msg = '''
28- *Тестовый бот мониторинга для _ServerStatusBot_ *
29+ *Бот мониторинга Dolphin для _TrafficAngels_ *
2930\-\-\-\-\-\-\-\-\-
3031_*1\.*_ Использование дисков → /disk
3132_*2\.*_ Использование CPU и RAM → /sysinfo
@@ -103,10 +104,10 @@ def server(message):
103104# server desc (/about)
104105@bot .message_handler (commands = ['about' ])
105106def server (message ):
106- author = re .escape (str (config ['Main ' ]['author' ]))
107- version = re .escape (str (config ['Main ' ]['version' ]))
108- source = re .escape (str (config ['Main ' ]['source' ]))
109- commands = config ['Main ' ]['commands' ]
107+ author = re .escape (str (config ['main ' ]['author' ]))
108+ version = re .escape (str (config ['main ' ]['version' ]))
109+ source = re .escape (str (config ['main ' ]['source' ]))
110+ commands = config ['main ' ]['commands' ]
110111 msg = '''
111112*О боте*
112113\-\-\-\-\-\-\-\-\-
You can’t perform that action at this time.
0 commit comments