Tag: 1.18

Intermediate commits (oldest → newest):
- pls 11.11
- mood fixes
- Fajne laski na prawicy są :D :P
- Duplication error
- Fix silence
- silence fx 2
- Fixed live
- first test of secret channel
- tst
- txt
- tst
- Test
- FX
- FAAFO
- Start
- Logfix
- fx
- bgfx
This commit is contained in:
2025-10-30 16:59:14 +01:00
parent 308875f77e
commit 5527a844a3
8 changed files with 85 additions and 202 deletions
+17 -7
View File
@@ -9,7 +9,7 @@ import openai
import requests
from discord.ext import commands
from ai_functions import handle_response
from ai_functions import handle_response, hammer_assistant_create
from constants import (
DATA,
GRAPHICS_PATH,
@@ -25,11 +25,11 @@ class Events(commands.Cog):
self.bot = bot
self.logger = logging.getLogger("discord")
@commands.Cog.listener()
async def on_ready(self):
print("Ready!")
print("Logged in as ---->", self.bot.user)
print("ID:", self.bot.user.id)
async def cog_load(self):
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):
@@ -46,6 +46,7 @@ class Events(commands.Cog):
channel = None
if message.author == self.bot.user:
return
if isinstance(message.author, discord.Member):
for role in message.author.roles:
if role.name == "Vykidailo":
@@ -67,7 +68,16 @@ class Events(commands.Cog):
return
if isinstance(message.channel, discord.DMChannel):
if message.author.id == 346956223645614080:
await message.reply("Witam witam")
#hammer pisze dma
user = await self.bot.fetch_user(703985955312238664)
channel = await user.create_dm()
await channel.send(message.content)
await message.reply(f"Poszlo do Saint {message.content}")
return
elif message.author.id == 703985955312238664:
#saint pisze DMA
self.logger.info(message.content)
await message.reply("Hejka Saint!")
return
else:
channel = self.bot.get_channel(1064888712565100614)