Skip to content

Rednexie/discord-id

Repository files navigation

discord-id

discord id lookup tool - node.js full-stack website and api to get info about discord id's

Functionality & Features

User Info:

username, discriminator, is system?, is bot?, tag, profile picture, account creation date, badges, nitro subscription status, banner color and account age.

Guild Info:

name, splash url, description, total members, online members, profile picture, server creation date, features, and server age.

Logs the ip addresses, id's and request times both to the console and a text file.

Works with cross origin requests, CORS Requests are allowed.

Provides both website and JSON API functionality.

Works no matter if the user has got their new username or not(discord discriminator removal update)


Endpoints

/api/your-discord-id => Gives the info as JSON

/ => Asks for a discord id.

/info/ => Gives the info inside the website


Usage & Setup

Install required dependencies:

npm i fs express discord.js@13 consoled.js@1.0.4 ejs cors

Get a discord bot token, then create an environment variable:

export TOKEN="your-discord-bot-token" for linux / mac

set TOKEN="your-discord-bot-token" for windows cmd

$env:TOKEN="your-discord-bot-token" for windows powershell

On cloud hosting platforms like replit, codespaces, glitch, codesandbox etc, use the platform's integrated secrets feature.

node .

to start the server.


Testing

You can test the system here

You can test the api here

example api response

Project Screenshots:

Website

https://discord-id.rednexie.repl.co/

https://discord-id.rednexie.repl.co/info/866793047596728321

API

https://discord-id.rednexie.repl.co/api/866793047596728321)


Technologies used in the project:

  • fs
  • express
  • discord.js v13
  • consoled.js v1.0.4
  • ejs
  • cors

Possible Updates

at 10 stars⭐

More logging options(mysql, perma.db, quick.db, json)

More Interfaces(Command Line, Discord Bots)

Data storing/caching

Rate Limiting

Links

Download as Zip

Run on Replit

Import into Glitch

Create Github Codespace