Skip to content

Commit

Permalink
feat(slack): Complete Slack client implementation with core improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
AIFlowML committed Dec 5, 2024
1 parent eb86bd5 commit a97266f
Show file tree
Hide file tree
Showing 147 changed files with 5,220 additions and 1,397 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ node_modules

.env
.env.production
.env.local
.env_main
concatenated-output.ts
embedding-cache.json
packages/plugin-buttplug/intiface-engine
Expand Down Expand Up @@ -47,3 +49,12 @@ packages/plugin-coinbase/package-lock.json
tsup.config.bundled_*.mjs

.turbo

planning/

.cursorrules
.cursor.json
.cursorcommands

tools/
tools/cursor/.cursorrulesold
9 changes: 8 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,12 @@
},
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
},
"cursor.rules.file": ".cursorrules",
"cursor.agents.enabled": true,
"cursor.monitor.autoStart": true,
"cursor.workspace.root": "/Users/ilessio/dev-agents/eliza_aiflow",
"cursor.tools.path": "/Users/ilessio/dev-agents/eliza_aiflow/tools",
"cursor.agents.solver": "IssueSolverAgent",
"cursor.agents.debugger": "DebugAgent"
}
1 change: 1 addition & 0 deletions agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@ai16z/client-discord": "workspace:*",
"@ai16z/client-telegram": "workspace:*",
"@ai16z/client-twitter": "workspace:*",
"@ai16z/client-slack": "workspace:*",
"@ai16z/eliza": "workspace:*",
"@ai16z/plugin-bootstrap": "workspace:*",
"@ai16z/plugin-conflux": "workspace:*",
Expand Down
9 changes: 8 additions & 1 deletion agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { SqliteDatabaseAdapter } from "@ai16z/adapter-sqlite";
import { AutoClientInterface } from "@ai16z/client-auto";
import { DirectClientInterface } from "@ai16z/client-direct";
import { DiscordClientInterface } from "@ai16z/client-discord";
import { SlackClientInterface } from "@ai16z/client-slack";
import { TelegramClientInterface } from "@ai16z/client-telegram";
import { TwitterClientInterface } from "@ai16z/client-twitter";
import {
Expand Down Expand Up @@ -316,7 +317,13 @@ export async function initializeClients(
const twitterClients = await TwitterClientInterface.start(runtime);
clients.push(twitterClients);
}

// TODO: Add Slack client to the list
if (clientTypes.includes("slack")) {
const slackClient = await SlackClientInterface.start(runtime);
if (slackClient) clients.push(slackClient);
}
// TODO: Add Slack client to the list

if (character.plugins?.length > 0) {
for (const plugin of character.plugins) {
if (plugin.clients) {
Expand Down
Loading

0 comments on commit a97266f

Please sign in to comment.