Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 881 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 881 Bytes

Discord Badge

An API to easly generate Discord badge with (or without) your status.

Installation

To install the bot, follow this steps :

  1. Create an app on Discord Dev Portal
  2. Invite the bot to your Discord server
  3. Clone the repo
  4. Install Packages
  5. Create .env file with :
TOKEN=[BOT_TOKEN]
GUILD_ID=[GUILD_ID]
  1. Run node index.js

Usage

The API is very simple. There are 3 path :

  • / => Redirect to this repo
  • /badge/status/[USER_ID] => Genreate a badge with the status of the user
  • /badge/[USER_ID] => Generate a badge only with the username

For /badge/status/[USER_ID] you can add ?json=true to get a JSON that contains all data.

Exemples

Username_Status Username