mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-16 06:42:10 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user