Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcatprog authored May 14, 2021
1 parent b0d9391 commit bc3235c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
18 changes: 15 additions & 3 deletions Android/comm-bot-andro.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import vk_api
import time
from colorama import Fore
import ctypes

#support colors
kernel32 = ctypes.windll.kernel32
kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 7)

def graph():
print(" COMMENTS BOT (by blackcat)")
print(" author on vk: https://vk.com/krtvx")
print(" author on github: https://github.com/blackcatprog\n")
print(" +-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ")
print(" |C O M M E N T - B O T - V K| ")
print(" +-+-+-+-+-+-+-+-+-+-+-+-+-+-+ by blackcat ")
print("")
print(" author on vk: https://vk.com/krtvx")
print(" author on github: https://github.com/blackcatprog\n")

def func():
try:
Expand Down Expand Up @@ -40,6 +48,10 @@ def func():
print(Fore.RED + "Пост отсутствует")
elif error[1:2] == "5":
print(Fore.RED + "Ошибка авторизации")
elif error[1:4] == "213":
print("Нет доступа к записи")
except configparser.ParsingError:
print(Fore.RED + "Ошибка чтения конфига")
except KeyboardInterrupt:
print(Fore.RED + "\nВыполнен выход")

Expand Down
2 changes: 1 addition & 1 deletion Source/cfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ token = ваш токен
user = id пользователя на стене у которого пост
post = id поста
text = текст комментария
time = время задержки
time = задержка перед отправкой поста (в секундах)
16 changes: 13 additions & 3 deletions Source/comm-bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@
import configparser
import time
from colorama import Fore
import ctypes

#support colors
kernel32 = ctypes.windll.kernel32
kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 7)

def graph():
print(" COMMENTS BOT (by blackcat)")
print(" author on vk: https://vk.com/krtvx")
print(" author on github: https://github.com/blackcatprog\n")
print(" +-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ")
print(" |C O M M E N T - B O T - V K| ")
print(" +-+-+-+-+-+-+-+-+-+-+-+-+-+-+ by blackcat ")
print("")
print(" author on vk: https://vk.com/krtvx")
print(" author on github: https://github.com/blackcatprog\n")

def func():
try:
Expand Down Expand Up @@ -43,6 +51,8 @@ def func():
print(Fore.RED + "Пост отсутствует")
elif error[1:2] == "5":
print(Fore.RED + "Ошибка авторизации")
elif error[1:4] == "213":
print("Нет доступа к записи")
except configparser.ParsingError:
print(Fore.RED + "Ошибка чтения конфига")
except KeyboardInterrupt:
Expand Down
Binary file modified Windows/comm-bot-win.exe
Binary file not shown.

2 comments on commit bc3235c

@mikrochel123
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikrochel123
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.