Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Server Count Logo

Discord Server Count

Uses Python License

Ever wondered how many Discord servers you're actually in?

> Try the live version

How it works

Discord's OAuth2 flow lets you request a list of servers a user belongs to with the guilds scope. This app requests exactly that, counts the results, and displays the total to you.

The live site runs as a static frontend on Cloudflare Pages with NobreAPI handling the OAuth token exchange on the backend.

Tokens are only used momentarily to fetch the count and immediately revoked.

This repo is a self-contained version using Flask to serve both the frontend and handle the OAuth flow, useful if you want to host your own instance.

Self-hosting

Requirements

  • Python 3.x
  • A Discord application with OAuth2 configured

Setup

  1. Clone the repo

    git clone https://github.com/NobreHD/Discord-Server-Count
    cd Discord-Server-Count
  2. Install dependencies

    pip install -r requirements.txt
  3. Create a Discord application at discord.com/developers and add your redirect URI (e.g. http://localhost:5000/callback)

  4. Configure your credentials

    # Set these as environment variables or add to a .env file
    CLIENT_ID=your_client_id
    CLIENT_SECRET=your_client_secret
    REDIRECT_URI=http://localhost:5000/callback
  5. Run

    python app.py

Stack

  • Frontend: HTML, CSS, JQuery
  • Backend: Python, Flask
  • Auth: Discord OAuth2 (guilds and identity scopes)

About

Easily get the number of servers you are in

Topics

Resources

Stars

36 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages