mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Logfix
This commit is contained in:
+8
-5
@@ -9,7 +9,7 @@ import openai
|
|||||||
import requests
|
import requests
|
||||||
from discord.ext import commands
|
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 (
|
from constants import (
|
||||||
DATA,
|
DATA,
|
||||||
GRAPHICS_PATH,
|
GRAPHICS_PATH,
|
||||||
@@ -27,10 +27,13 @@ class Events(commands.Cog):
|
|||||||
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_ready(self):
|
async def on_ready(self):
|
||||||
print("Ready!")
|
self.logger.info("Ready!")
|
||||||
print("Logged in as ---->", self.bot.user)
|
self.logger.info("Logged in as ---->", self.bot.user)
|
||||||
print("ID:", self.bot.user.id)
|
self.logger.info("ID:", self.bot.user.id)
|
||||||
await start_assistants(self.bot)
|
self.logger.info("Starting personal assistants")
|
||||||
|
await hammer_assistant_create(self.bot)
|
||||||
|
self.logger.info("Started personal assistants")
|
||||||
|
|
||||||
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_message(self, message):
|
async def on_message(self, message):
|
||||||
|
|||||||
@@ -317,9 +317,3 @@ async def saint_assistant_chat(client):
|
|||||||
|
|
||||||
async def saint_assistant_bul(client):
|
async def saint_assistant_bul(client):
|
||||||
pass
|
pass
|
||||||
async def start_assistants(client):
|
|
||||||
print("Preparring assistants")
|
|
||||||
print("Hammer")
|
|
||||||
await hammer_assistant_create(client)
|
|
||||||
print("Saint")
|
|
||||||
print("Hedgehog")
|
|
||||||
|
|||||||
Reference in New Issue
Block a user