Extra Life API for Discord bot (node.js) - Extra Life JSON Code Discussion & Sharing - Extra Life Community Hub Jump to content
Patricio_tv

Extra Life API for Discord bot (node.js)

Recommended Posts

Hey everyone!.

 

 I want to share this useful API that I found on internet. If you have a custom bot and you want to get Extra Life info directly from your Discord server without checking the web site. Install this API and you can create custom commands to get information.

 

WARNING: I'm assuming you have a basic knowledge about development. 🤯

 

Requirements:

 

-You need to install node.js on your PC or server first. Download it here:  https://nodejs.org/en/download/

 

The installation instructions to install the Extra Life API is here: https://www.npmjs.com/package/extra-life-api

 

If you don't want to read, just go to your bot folder and run this command: " npm i extra-life-api", you should see an output like this:

 

image.png.f3a8b40e44513fbdd0abfaaa05ce834e.png

 

Ignore the warnings

 

image.png.77f7d5a5329bd560aef1f2bd17b2bb20.png

 

Once the installation is completed, you are able to create your custom Extra Life commands for your Disord bot. We got just 4 methods for now to get information: getUserInfo, getUserDonations, getTeamInfo, getTeamRoster and getTeamDonations . All the information about how to use them and what information we can get is on the web site.

 

I will add later how you can build your Extra Life bot or add these functionalities to your current custom bot. I leave you some basic examples what kind of things you can do to start. A big thank you to @Alex Muench for sharing and all the developers who worked on it. If you like this work consider to donate: https://www.extra-life.org/index.cfm?fuseaction=donorDrive.participant&participantID=362008

 

Let me know if you need help or anything.

 

Besos muah!

 

image.png.fd569977188aad4440ac403b890d8a3c.png

 

image.png.33c39266134e75298e9fed47872a2a41.png

 

image.png.be0dd713e664bf0144b31f81d3217a7c.png

 

image.png.13112c7bb7c3f21082a24674c37cee82.png

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...