[ВОЛК] starting prod...
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2025-12-26 00:28:13 +03:00
parent 30a4737db5
commit 825428bca3
3 changed files with 34 additions and 18 deletions
+32 -16
View File
@@ -1,6 +1,7 @@
# Общие настройки
SECRET_KEY=24af5f41dba9d8cc0dbc1841660da0b14d7df86ab5e0ed973cdd3bc2dbac23f6
LOG_FILE = /opt/testbot-git/logs/testzilantposter.log
# LOG_FILE = /opt/testbot-git/logs/testzilantposter.log
LOG_FILE = /opt/volk/logs/volkposter.log
# WORKMODE = "ZILANT"
WORKMODE = "VOLK"
@@ -19,9 +20,14 @@ WEBHOOK_SECRET = "cc0dbc1841660da0b14d7df86ab5e0ed973c"
#POSTHOOK_SECRET = "cc0dbc1841660da0b14d7df86ab5e0ed973c"
# Controller
WEBCTRL_URL = "https://bot.aabpro.ru/testedit"
WEBCTRL_PORT = 5006
WEBCTRL_PREFIX = "/testedit"
# WEBCTRL_URL = "https://bot.aabpro.ru/testedit"
# WEBCTRL_PORT = 5006
# WEBCTRL_PREFIX = "/testedit"
WEBCTRL_URL = "https://bot.aabpro.ru/volk"
WEBCTRL_PORT = 5009
WEBCTRL_PREFIX = "/volk"
# логин и пароль по умолчанию для первого запуска веб-контроллера
DEFNM=admin
@@ -38,18 +44,24 @@ VK_API_VERSION = '5.131'
# MySQL database
# MDBASE = 'testposts'
# MDBASE = 'tempzilant' # debug Zilant database
MDBASE = 'volk_test' # debug VOLK database
# MDBASE = 'volk_test' # debug VOLK database
MDBASE = 'volkdata' # VOLK production database
MDB_HOST = 'localhost'
MDB_USER = 'testuser'
MDB_PW = 'T38tU83r69'
# MDB_USER = 'testuser'
# MDB_PW = 'T38tU83r69'
MDB_USER = 'volkuser'
MDB_PW = 'V0lK@dM1n23'
# Poster bot
# Debug bot
# Debug bot @posto_1638_bot
# BOT_TOKEN = "8301828103:AAHDuBkw7EUkmMvv5TPpVJaLeeBLu-EB21U"
# @info_1638_bot
POSTER_BOT_TOKEN = "8215624618:AAF6VtqRtFr4twFRTiTjedSDE6txkbIy6rc"
# POSTER_BOT_TOKEN = "8215624618:AAF6VtqRtFr4twFRTiTjedSDE6txkbIy6rc"
# VOLK production bot @VOLK_informer_bot
POSTER_BOT_TOKEN = "8279661544:AAEsJee6icCUn_AbWxhDpk2CLxQhzaartuI"
# @posto_1638_bot
RESPONDER_BOT_TOKEN = "8301828103:AAHDuBkw7EUkmMvv5TPpVJaLeeBLu-EB21U"
# NOT NEEDED FOR VOLK MODE
# RESPONDER_BOT_TOKEN = "8301828103:AAHDuBkw7EUkmMvv5TPpVJaLeeBLu-EB21U"
# Zilant info bot
# BOT_TOKEN = "7951721805:AAEW6Go9yvOOcJSWjgJZ7E2XLPtii2qG7UU"
#
@@ -60,7 +72,8 @@ RESPONDER_BOT_TOKEN = "8301828103:AAHDuBkw7EUkmMvv5TPpVJaLeeBLu-EB21U"
# POSTER_BOT_TOKEN = "8115998792:AAHamcNBlTgTXG0Birc1gNbZ5B7z4jMEdik"
# RESPONDER_BOT_TOKEN = "7951721805:AAEW6Go9yvOOcJSWjgJZ7E2XLPtii2qG7UU"
# RESPONDER_BOT_NAME = "Zilant_info_bot"
RESPONDER_BOT_NAME = "posto_1638_bot"
# NOT NEEDED FOR VOLK MODE
# RESPONDER_BOT_NAME = "posto_1638_bot"
# Parameters
#
@@ -76,15 +89,18 @@ VK_NO_REPOST_TAG = "#окоЗиланта"
# !! DB datetime is UTC !!
#
# Set 1 hour when Zilant is near
# EVENT_POST_DELAY = 60
EVENT_POST_DELAY = 60
# keep 1 day when far from Zilant
EVENT_POST_DELAY = 1440
# EVENT_POST_DELAY = 1440
# Poster channel
# Debug channel
CHANNEL_ID = "@posto1638"
# CHANNEL_ID = "@posto1638"
# Zilant production channel
# CHANNEL_ID = "@zilantkon"
# VOLK production channel
CHANNEL_ID = "@VOLKinformer"
MAX_CAPTION_LENGTH = 1000
MAX_TEXT_LENGTH = 4000
@@ -93,8 +109,8 @@ MAX_TEXT_LENGTH = 4000
#
# add event number and trailing /
#
PZK_PREFIX = "https://reg.konvent.ru/zk2025/draft/plan/api/add/"
EVT_PREFIX = "https://reg.konvent.ru/zk2025/events/actions/api/"
# PZK_PREFIX = "https://reg.konvent.ru/zk2025/draft/plan/api/add/"
# EVT_PREFIX = "https://reg.konvent.ru/zk2025/events/actions/api/"
# DESC_PREFIX = "https://reg.konvent.ru/zk2025/events/actions/"
# VOLK mode API links
+1 -1
View File
@@ -63,7 +63,7 @@ def get_vk_posts():
url = 'https://api.vk.ru/method/wall.get'
params = {
'owner_id': VK_GROUP_ID,
'count': 10,
'count': 20,
'access_token': VK_ACCESS_TOKEN,
'v': VK_API_VERSION,
'extended': 1