Any bot examples on Github using sapphire's fetch for 3rd party API endpoints?
Looking to rebuild basic Discord.js bot that only fetches API endpoints and posts embeds. Also adding slash commands.
Solution:Jump to solution
Discord bots that use @sapphire/[email protected] and leverage Application Commands and Interaction Handlers
- Official Bot Examples ᴱ ᴰ ᴶˢ
- Archangel ᴱ ᴰ...
14 Replies
Sounds like you're looking to create an HTTP only bot, and therefore not use DiscordJS
if that is the case I should forewarn you that HTTP only bots are an advanced bit of programming and not very beginner friendly
my bot just pulls from a couple APIs and creates pretty embeds.
but slash commands with Interaction Handlers would be nice.
oh i've already created a HTTP bot with Discord.js v13
DiscordJS doesn't do HTTP only bots. DiscordJS always connects to the gateway and ws
If you are going to use DiscordJS then check the combination of the sapphire guide and discordjs guide and one of many of the sapphire bots
The guide for Sapphire and its many utilities, plugins and related libraries can be found on our website
Solution
Discord bots that use @sapphire/[email protected] and leverage Application Commands and Interaction Handlers
- Official Bot Examples ᴱ ᴰ ᴶˢ
- Archangel ᴱ ᴰ
- Arima ᴱ
- Dragonite ᴱ ᴰ
- Nino ᴱ ᴰ
- Operator ᴱ ᴬ ᴰ
- Radon ᴱ ᴬ
- Sapphire Application Commands Examples ᴱ
- Spectera ᴬ
Discord bots that use @sapphire/framework v2
- Materia ᴱ
- RTByte ᴱ ᴬ
- Skyra ᴬ ᴰ
- YliasDiscordBot ᴬ
ᴱ: Uses ESM (if not specified then uses CJS)
ᴬ: Advanced bot (if not specified it is a simple bot, or not graded)
ᴰ: Uses Docker in production
ᴶˢ: Written in JavaScript. If not specified then the bot is written in TypeScript.
when you say HTTP only, what does that mean?
Truth be told, if you need to ask just forget I said it. It's an advanced bit of coding that has some caveats but also allows very high performant bots. For example @Spinel and @Iriss are HTTP only bots. You'll notice they do not show as "online" unlike @Dragonite (which uses Sapphire and DiscordJS)
yeah i don't care if they show online/offline, just need on-demand commands that pull from an api.
no db, no cron jobs, etc...
is @Iriss just a renamed Skyra sourcecode?
No
a little too advance, there isn't any available utility packages for HTTP only bots, so I have to code each and everything
Not really, there are a bunch of utilities already
It seems i am unaware of it then
Off topic for this post
We can continue in #off-topic or #Coding