This commit is contained in:
2024-11-13 22:10:43 +01:00
parent b3e5a1aaf3
commit 651d796254
2 changed files with 8 additions and 11 deletions
+8 -5
View File
@@ -9,7 +9,7 @@ import openai
import requests
from discord.ext import commands
from ai_functions import handle_response, start_assistants
from ai_functions import handle_response, hammer_assistant_create
from constants import (
DATA,
GRAPHICS_PATH,
@@ -27,10 +27,13 @@ class Events(commands.Cog):
@commands.Cog.listener()
async def on_ready(self):
print("Ready!")
print("Logged in as ---->", self.bot.user)
print("ID:", self.bot.user.id)
await start_assistants(self.bot)
self.logger.info("Ready!")
self.logger.info("Logged in as ---->", self.bot.user)
self.logger.info("ID:", self.bot.user.id)
self.logger.info("Starting personal assistants")
await hammer_assistant_create(self.bot)
self.logger.info("Started personal assistants")
@commands.Cog.listener()
async def on_message(self, message):
-6
View File
@@ -317,9 +317,3 @@ async def saint_assistant_chat(client):
async def saint_assistant_bul(client):
pass
async def start_assistants(client):
print("Preparring assistants")
print("Hammer")
await hammer_assistant_create(client)
print("Saint")
print("Hedgehog")