ADdded smth

This commit is contained in:
2024-11-15 18:33:31 +01:00
parent 62f6b64bfb
commit e290e7d656
2 changed files with 17 additions and 10 deletions
+17 -9
View File
@@ -4,7 +4,7 @@ import re
import sys import sys
from enum import Enum from enum import Enum
from datetime import datetime from datetime import datetime
from typing import Optional, TypedDict from typing import Optional
import discord import discord
import openai import openai
@@ -88,14 +88,21 @@ class Events(commands.Cog):
description="Jeśli nie wiesz jak użyć tej komendy to nawet nie próbuj" description="Jeśli nie wiesz jak użyć tej komendy to nawet nie próbuj"
) )
async def armia_hammera(self, ctx, message_txt: str, recipient: Optional[discord.User]): async def armia_hammera(self, ctx, message_txt: str, recipient: Optional[discord.User]):
pass await self.armia_hammera_back(ctx, message_txt, recipient)
async def armia_hammera_back(): async def armia_hammera_back(self, ctx, message_txt, recipient = None):
#user = await self.bot.fetch_user(703985955312238664) recipients = []
#channel = await user.create_dm() if recipient:
#await channel.send(message.content) recipients.append(recipient.id)
#await message.reply(f"Poszlo do Saint {message.content}") else:
pass for superfryta in SPECJALNE_ZIEMNIACZKI.values():
recipients.append(superfryta[0])
for item in recipients:
user = await self.bot.fetch_user(item)
channel = await user.create_dm()
self.logger.info("User %s -> %s: %s", ctx.message.author, user, message_txt)
#await channel.send(message_txt)
@@ -147,7 +154,8 @@ class Events(commands.Cog):
await ai_functions.echo(message) await ai_functions.echo(message)
return return
elif self.armia[message.author.id]== Dm_Mode.ARMIA_HAMMERA: elif self.armia[message.author.id]== Dm_Mode.ARMIA_HAMMERA:
#self.armia_hammera_back() ctx = await self.bot.get_context(message)
self.armia_hammera_back(ctx=ctx, message_txt=message.content)
return return
elif self.armia[message.author.id]== Dm_Mode.SEKRETNY_SEKSRET: elif self.armia[message.author.id]== Dm_Mode.SEKRETNY_SEKSRET:
pass pass
-1
View File
@@ -56,7 +56,6 @@ s = crossfade(fade_out=2., fade_in=2., duration=4., fallback(id="switcher", trac
# Set up an interactive harbor for controlling the stream # Set up an interactive harbor for controlling the stream
interactive.harbor(port = 9999) interactive.harbor(port = 9999)
#harbor.input(buffer=30.0)
# Set up interactive controls for bass boost # Set up interactive controls for bass boost
f = interactive.float("f", description="Frequency", min=0., max=1000., unit="Hz", 200.) f = interactive.float("f", description="Frequency", min=0., max=1000., unit="Hz", 200.)
g = interactive.float("g", description="Gain", min=0., max=20., unit="dB", 8.) g = interactive.float("g", description="Gain", min=0., max=20., unit="dB", 8.)