Tag: 1.16

Intermediate commits (oldest → newest):
- moving api key to netrc
- New stuff incoming
- Manual external audition
- Let's get this effin party started
- test mic
- tst
- Test
- Test
- fix
- fx
- test
- Refactoring step one
- Deploy script for after refactor
- Fix and upgrade
- bg fx
- fx
- fx
- fx
- Main refactoring
- Deploy script refactor
- fx
- fx2
- bgfx
This commit is contained in:
2025-10-30 16:59:12 +01:00
parent af29b857b1
commit b8df466e6f
32 changed files with 3056 additions and 2151 deletions
+11 -7
View File
@@ -215,7 +215,6 @@ REMOTE_HOST_NAME = "openai"
authTokens = netrc_mod.authenticators(REMOTE_HOST_NAME)
openai.api_key = authTokens[2]
openAIClient = openai.AsyncOpenAI(api_key=openai.api_key)
REMOTE_HOST_NAME = "spotipy"
authTokens = netrc_mod.authenticators(REMOTE_HOST_NAME)
spotify_ctrl = spotipy.Spotify(
@@ -301,13 +300,14 @@ logger.info("Done")
async def on_ready():
"""Metoda wywoływana przy połączeniu do serwera."""
logger.debug("%s has connected to Discord!", client.user)
await client.load_extension("voice_recognition")
logger.info("Cogs")
#TODO: load vs reload
#try:
await client.load_extension("voice_recognition_commands")
logger.info(client.cogs)
await client.change_presence(activity=discord.Game(name="Axe Throwing Darts"))
await client.tree.sync()
for com in client.commands:
logger.info(com.qualified_name)
logger.info("Command %s is awejleble", com.qualified_name)
check_self.start()
check_data_q.start()
@@ -347,9 +347,13 @@ async def on_message(message):
if message.channel.id == 1111625221171052595:
return
if isinstance(message.channel, discord.DMChannel):
channel = client.get_channel(1064888712565100614)
await channel.send("Słyszałem ja żem że: " + message.content)
return
if message.author.id == 346956223645614080:
await message.reply("Witam witam")
return
else:
channel = client.get_channel(1064888712565100614)
await channel.send("Słyszałem ja żem że: " + message.content)
return
channel = message.channel
await client.process_commands(message)