Skip to content

Commit 34a15d2

Browse files
AmbratolmAmbratolm
authored andcommitted
Updated ai model & fixed vc bug
1 parent 565d6fe commit 34a15d2

6 files changed

Lines changed: 65 additions & 10 deletions

File tree

bot/cogs/chat_cogs/ai_cog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class AiCog(Cog, description="Integrated generative AI chat bot"):
4646
MAX_FILE_SIZE = 2097152 # 2 MB
4747
REPLY_DELAY_RANGE = (1, 5) # 1 sec - 5 sec
4848

49-
AUTO_REPLY_ENABLED = False
49+
AUTO_REPLY_ENABLED = True
5050
AUTO_REPLY_DELAY_RANGE = (5, 1800) # 5 sec - 30 min
5151
AUTO_REPLY_CHANCE = 0.1 # 10 %
5252

bot/cogs/console_cog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ async def join(self, interaction: Interaction, channel: VoiceChannel | None = No
169169
"Not in a voice channel. Provide a channel to join."
170170
),
171171
ephemeral=True,
172-
)
172+
)
173173
except Exception as e:
174-
await interaction.followup.send(
174+
await interaction.followup.send(
175175
embed=EmbedX.error(f"An error occurred: {e}"),
176176
ephemeral=True,
177-
)
177+
)
178178

179179
# ----------------------------------------------------------------------------------------------------
180180
# * Proxy

main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@ async def main():
6767
bot = None
6868
if bot_enabled:
6969
intents = Intents.default()
70+
intents.guilds = True
7071
intents.members = True
7172
intents.message_content = True
72-
intents.guilds = True
73+
intents.voice_states = True
7374
bot = ActBot(
7475
token=bot_token or "",
7576
command_prefix="!",
76-
intents=intents,
77+
intents=intents,
7778
db=db,
7879
api_keys={"gemini": ai_api_key or ""},
7980
title=name,

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ requires-python = ">=3.13"
1717
dependencies = [
1818
"alt-profanity-check>=1.6.1",
1919
"audioop-lts>=0.2.1",
20+
"davey>=0.1.5",
2021
"discord-py>=2.4.0",
2122
"fastapi[standard]>=0.115.8",
2223
"filetype>=1.2.0",

utils/ai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ActAi(BaseModel):
2323

2424
api_key: NonEmptyStr
2525
instructions: NonEmptyStr | list[NonEmptyStr] | None = None
26-
model_name: str = Field(alias="model", default="gemini-2.5-flash")
26+
model_name: str = Field(alias="model", default="gemma-4-31b-it")
2727
response_char_limit: int = 2000 # Used to be 4000 hmm
2828

2929
_client: Client | None = None

uv.lock

Lines changed: 56 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)