Skip to content

Commit 53bf2f0

Browse files
committed
Add v1.0.1
1 parent f7d2bf3 commit 53bf2f0

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# :memo: Версии
3131

3232
### :heavy_check_mark: `Последняя версия`
33-
## **Версия v1.0.0**
33+
## **Версbя v1.0.0**
3434

3535
### Добавлено
3636
- 7 команд

config.ini renamed to config.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[Main]
1+
[main]
22
author = GorAlex97
33
version = v1.0.0
44
source = https://github.com/GORAlexComp/ServerStatusBot

requirments.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
pyTelegramBotAPI==4.7.1
22
python-dotenv==0.21.0
3+
psutil

setup.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
'''
23
Author : GORAlex Comp
34
Date : 01/11/2022
@@ -10,7 +11,7 @@
1011
from dotenv import load_dotenv
1112

1213
config = 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
@@ -25,7 +26,7 @@
2526
@bot.message_handler(commands=['start','help'])
2627
def 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'])
105106
def 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
\-\-\-\-\-\-\-\-\-

0 commit comments

Comments
 (0)