Skip to content

Commit

Permalink
bugfix for discord client
Browse files Browse the repository at this point in the history
  • Loading branch information
jmilldotdev committed Jan 27, 2025
1 parent c478cea commit 93e9fe6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions eve/clients/discord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ def __init__(
) -> None:
self.bot = bot
self.agent = agent
self.discord_channel_allowlist = [
int(channel) for channel in agent.discord_channel_allowlist
]
self.discord_channel_allowlist = (
[int(channel) for channel in agent.discord_channel_allowlist]
if agent.discord_channel_allowlist
else None
)
self.tools = agent.get_tools()
self.known_users = {}
self.known_threads = {}
Expand Down

0 comments on commit 93e9fe6

Please sign in to comment.