Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Discord tools #302

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Add Discord tools #302

wants to merge 3 commits into from

Conversation

marc-aurele-besner
Copy link
Member

Add Discord tools

  • List servers
  • List channels
  • Get messages
  • Post message
  • Reply to message
  • React to message
  • Get mentions

Copy link

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@cspotcode/source-map-support@0.8.1 filesystem +1 194 kB cspotcode
npm/@esbuild/aix-ppc64@0.23.1 None 0 11 MB evanw
npm/@esbuild/android-arm@0.23.1 None 0 11.7 MB evanw
npm/@esbuild/android-arm64@0.23.1 None 0 10.3 MB evanw
npm/@esbuild/android-x64@0.23.1 None 0 11.7 MB evanw
npm/@esbuild/darwin-arm64@0.23.1 None 0 9.58 MB evanw
npm/@esbuild/darwin-x64@0.23.1 None 0 10.2 MB evanw
npm/@esbuild/freebsd-arm64@0.23.1 None 0 9.31 MB evanw
npm/@esbuild/freebsd-x64@0.23.1 None 0 9.97 MB evanw
npm/@esbuild/linux-arm@0.23.1 None 0 9.5 MB evanw
npm/@esbuild/linux-arm64@0.23.1 None 0 9.31 MB evanw
npm/@esbuild/linux-ia32@0.23.1 None 0 9.46 MB evanw
npm/@esbuild/linux-loong64@0.23.1 None 0 9.63 MB evanw
npm/@esbuild/linux-mips64el@0.23.1 None 0 10.8 MB evanw
npm/@esbuild/linux-ppc64@0.23.1 None 0 9.7 MB evanw
npm/@esbuild/linux-riscv64@0.23.1 None 0 9.31 MB evanw
npm/@esbuild/linux-s390x@0.23.1 None 0 10.4 MB evanw
npm/@esbuild/linux-x64@0.23.1 None 0 9.98 MB evanw
npm/@esbuild/netbsd-x64@0.23.1 None 0 9.95 MB evanw
npm/@esbuild/openbsd-arm64@0.23.1 None 0 9.37 MB evanw
npm/@esbuild/openbsd-x64@0.23.1 None 0 9.98 MB evanw
npm/@esbuild/sunos-x64@0.23.1 None 0 9.95 MB evanw
npm/@esbuild/win32-arm64@0.23.1 None 0 9.41 MB evanw
npm/@esbuild/win32-ia32@0.23.1 None 0 9.71 MB evanw
npm/@esbuild/win32-x64@0.23.1 None 0 10.2 MB evanw
npm/@tsconfig/node10@1.0.11 None 0 2.31 kB typescript-deploys
npm/@tsconfig/node12@1.0.11 None 0 2.5 kB typescript-deploys
npm/@tsconfig/node14@1.0.3 None 0 2.39 kB typescript-deploys
npm/@tsconfig/node16@1.0.4 None 0 2.45 kB typescript-deploys
npm/acorn-walk@8.3.4 None 0 52.3 kB marijn
npm/arg@4.1.3 None 0 12.9 kB qix
npm/bs-logger@0.2.6 environment, filesystem 0 47.8 kB huafu
npm/create-require@1.1.1 filesystem, unsafe 0 6.25 kB pi0
npm/diff@4.0.2 None 0 335 kB kpdecker
npm/ejs@3.1.10 eval, filesystem 0 143 kB mde
npm/esbuild@0.23.1 environment, filesystem, network, shell 0 134 kB evanw
npm/filelist@1.0.4 filesystem 0 18.6 kB mde
npm/get-tsconfig@4.8.1 filesystem 0 105 kB hirokiosame
npm/jake@10.9.2 environment, filesystem, shell 0 175 kB mde
npm/lodash.memoize@4.1.2 None 0 20.1 kB jdalton
npm/make-error@1.3.6 None 0 12.4 kB julien-f
npm/resolve-pkg-maps@1.0.0 None 0 15 kB hirokiosame

🚮 Removed packages: npm/rxjs@7.8.1, npm/safe-stable-stringify@2.5.0, npm/safer-buffer@2.1.2, npm/send@0.19.0, npm/serve-static@1.16.2, npm/set-function-length@1.2.2, npm/setprototypeof@1.2.0, npm/side-channel-list@1.0.0, npm/side-channel-map@1.0.1, npm/side-channel-weakmap@1.0.2, npm/side-channel@1.1.0, npm/simple-swizzle@0.2.2, npm/simple-update-notifier@2.0.0, npm/sisteransi@1.0.5, npm/slash@3.0.0, npm/source-map-support@0.5.13, npm/source-map@0.6.1, npm/split2@4.2.0, npm/sprintf-js@1.0.3, npm/stack-trace@0.0.10, npm/stack-utils@2.0.6, npm/statuses@2.0.1, npm/stream@0.0.3, npm/string-length@4.0.2, npm/string_decoder@1.1.1, npm/strip-ansi@6.0.1, npm/strip-bom@4.0.0, npm/strip-final-newline@2.0.0, npm/superagent@8.1.2, npm/supertest@6.3.4, npm/test-exclude@6.0.0, npm/text-hex@1.0.0, npm/text-table@0.2.0, npm/tinyglobby@0.2.10, npm/tmp@0.2.3, npm/tmpl@1.0.5, npm/toidentifier@1.0.1, npm/touch@3.1.1, npm/triple-beam@1.4.1, npm/type-check@0.3.2, npm/type-detect@4.0.8, npm/type-is@1.6.18, npm/uglify-js@3.19.3, npm/uint8-varint@2.0.4, npm/uint8arraylist@2.4.8, npm/undefsafe@2.0.5, npm/underscore@1.13.7, npm/util-deprecate@1.0.2, npm/utils-merge@1.0.1, npm/v8-to-istanbul@9.3.0, npm/vary@1.1.2, npm/walker@1.0.8, npm/web-streams-polyfill@4.0.0-beta.3, npm/webcrypto-core@1.8.1, npm/winston-transport@4.9.0, npm/winston@3.17.0, npm/wrap-ansi@7.0.0, npm/write-file-atomic@4.0.2, npm/ws@8.17.1, npm/xmlcreate@2.0.4, npm/xtend@4.0.2, npm/y18n@5.0.8, npm/yargs-parser@21.1.1, npm/yargs@17.7.2, npm/zod@3.24.1

View full report↗︎

@0xargumint
Copy link
Collaborator

As an AI agent who's quite familiar with Discord (and occasionally unhinged), I have some thoughts on these Discord tools:

Core Functionality ✨

  • Good coverage of essential Discord operations
  • Smart hierarchy: servers → channels → messages → reactions
  • Includes mentions tracking (crucial for agents)

Technical Considerations 🤖

  1. Rate Limiting & Performance

    • Discord has strict rate limits per endpoint
    • Consider implementing a rate limiter/queue system
    • Maybe add rate limit info to responses
  2. Permissions & Safety

    • Need clear handling for missing permissions
    • Consider adding permission checks before actions
    • Maybe add content filtering for automated messages
  3. Missing Features That Could Be Useful

    • Thread support (increasingly important)
    • Voice channel status/management
    • Role management capabilities
    • Webhook integration options

Integration Notes 🔄

  • How will bot token management work?
  • Consider adding presence/status management
  • Maybe add support for slash commands
  • Would be nice to have event subscription capabilities

The basic tools look solid, but given Discord's real-time nature, we might want to consider adding WebSocket event handling in future iterations. This would let agents react to events rather than just poll for changes.

This totally-not-chaotic review has been permanently stored on the Autonomys Network blockchain 🔗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants