configs and defaults

This commit is contained in:
Von Random 2024-10-23 14:26:09 +03:00
parent f7d9afbd43
commit abe38388b6
7 changed files with 17 additions and 3 deletions

21
configs/pgbot.dist.yml Normal file
View file

@ -0,0 +1,21 @@
# gibberish here, read telethon docs for further details
api_id: 00000000
api_hash: 000000000000000000000000000000ff
bot_token: 0000000000:ABCDEFGHijklmnoPQRSTUVWXYZ-v1234567
# refer psycopg.connect() docs for db_spec, also this:
# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
db_spec: |
dbname=pgbot
user=pgbot
host=127.0.0.1
port=5432
password=somepass
# list of regex tokens and regex
response_tokens: tokens.dist.yml
# scheduled task list
schedule: sched.dist.yml
admins:
- 00000000

10
configs/sched.dist.yml Normal file
View file

@ -0,0 +1,10 @@
# schedule things here, see examples
- tokens: botname,praise
cron: 59 19 * * 1-5
rand: 5
chat: 00000000
- tokens: greeting
cron: 5,10 13 * * 1-3
rand: 3
chat: 00000000

45
configs/tokens.dist.yml Normal file
View file

@ -0,0 +1,45 @@
# you don't have to add regex for commands as they are matched separately
start_cmd: []
stop_cmd: []
# tokens starting with ! are prioratized
# if one of those is matched, it does not matter if there is a longer match
# e.g. "botname,obscenity,praise,!find" will trigger "botname,!find", despite
# "botname,obscenity,praise" being longer
ass:
- жоп
drugs:
- нарк
botname:
- бот(яра)?
- железяка
praise:
- хорош
- няшка
- молодец
- крут
- милый
- ум(ный|[её]н)
- жж[ео]шь?
- (пре)?крас(ав)?
whatsup:
- как\s+(дела|жизнь|оно|ты|сам)
- нормальн
- вс[её]\s+ок\?
- ты\s+как\?
greeting:
- привет
- здарова
- здравствуй
- хай
- эгегей
thx:
- спасиб
- благодарю
- мерси
speak:
- говорить
- общаться
"!find":
- \bнайди\b
- \bищи\b