Skip to content

Commit

Permalink
debug again
Browse files Browse the repository at this point in the history
  • Loading branch information
Viste committed Sep 17, 2024
1 parent 967aab7 commit c94251b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions core/core.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import logging
import jwt
import os

from aiogram import types, F, Router
from aiogram.filters.command import Command
Expand All @@ -18,9 +16,6 @@
@router.message(Command(commands="start", ignore_case=True), F.chat.type == "private")
async def start_handler(message: types.Message):
first_name = message.from_user.first_name
last_name = message.from_user.last_name
username = message.from_user.username
telegram_id = str(message.from_user.id)

await message.reply(f"Привет {first_name}, тут ты можешь отправить нам мемес. Принимаю только видосики и картинощки\n"
f"А еще связать свой аккаунт с сайтом dev-vlab.ru через команду /start auth")
Expand Down
2 changes: 1 addition & 1 deletion core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, dic):
cfg_file = open(os.path.join(os.path.dirname(__file__), 'config.json'), 'r', encoding='utf8')
config = json.loads(cfg_file.read(), object_hook=JSONObject)
SPAM_LINKS_REGEX = re.compile(r"(https?:\/\/)?(t\.me|waxu|binance|xyz)", re.IGNORECASE)
GROUP_ID = 1564920057
GROUP_ID = "-1564920057"
openai.api_key = os.getenv('OPENAI_API_KEY')

def is_spam(message: types.Message):
Expand Down

0 comments on commit c94251b

Please sign in to comment.