This commit is contained in:
@@ -4,11 +4,9 @@ from create_bot import dp, bot
|
||||
import logging
|
||||
from global_conf import CONFIG
|
||||
|
||||
|
||||
admins = CONFIG['telegram_admins_ids']
|
||||
|
||||
|
||||
|
||||
ban_comands = ['/dick','/topdick']
|
||||
ban_comands = ['/dick','/topdick']
|
||||
|
||||
# Image_promt =['тупица сгенерируй','тупица сгенерируй картинку',\
|
||||
# 'тупица отправь картинку', 'тупица отправь картинку']
|
||||
@@ -40,7 +38,6 @@ client = AsyncOpenAI(api_key="sk-BmDsaPA1jByz8QcVxMYDT3BlbkFJwjqBXBAcRQ1aWDzhTQy
|
||||
# except Exception as e:
|
||||
# await message.reply('у меня не получилось')
|
||||
|
||||
|
||||
async def gpt_text(req):
|
||||
completion = await client.chat.completions.create(
|
||||
messages=[
|
||||
@@ -58,13 +55,3 @@ async def send(message: types.Message):
|
||||
if message.from_user.id in admins and message.chat.type == 'private':
|
||||
response = await gpt_text(message.text)
|
||||
await message.answer(response.choices[0].message.content)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user