All Projects → ashmonty → discord-md-badge

ashmonty / discord-md-badge

Licence: GPL-3.0 License
Add to your GitHub readme a badge that shows your Discord username and presence!

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to discord-md-badge

github-readme-medium
📖 Dynamically generated your latest Medium article on your GitHub readmes!
Stars: ✭ 56 (+47.37%)
Mutual labels:  profile-readme
Spiderpig86
💎 Me. This is a self-updating README. Star it if you like it :)
Stars: ✭ 40 (+5.26%)
Mutual labels:  profile-readme
readme-typing-svg
⚡ Dynamically generated, customizable SVG that gives the appearance of typing and deleting text. Typing SVGs can be used as a bio on your Github profile readme or repository.
Stars: ✭ 938 (+2368.42%)
Mutual labels:  profile-readme
profile-readme
🗣 Display profile activity and other cool widgets in your profile README.md
Stars: ✭ 49 (+28.95%)
Mutual labels:  profile-readme
github-readme-streak-stats
🔥 Stay motivated and show off your contribution streak! 🌟 Display your total contributions, current streak, and longest streak on your GitHub profile README
Stars: ✭ 1,395 (+3571.05%)
Mutual labels:  profile-readme
cardivo
Get your card name and put it in your magic readme 📇
Stars: ✭ 51 (+34.21%)
Mutual labels:  profile-readme
ouuan
A profile README with 86 stars and 152 forks 🌟
Stars: ✭ 86 (+126.32%)
Mutual labels:  profile-readme
profile-readme-stats
Showcase your github stats on your profile README.md
Stars: ✭ 144 (+278.95%)
Mutual labels:  profile-readme
github-readme-linkedin
📋 A serverless application to get dynamically generated images from your LinkedIn profile on your GitHub READMEs
Stars: ✭ 52 (+36.84%)
Mutual labels:  profile-readme
Raymo111
My awesome profile README
Stars: ✭ 110 (+189.47%)
Mutual labels:  profile-readme
awesome-github-profile-readme
😎 A curated list of awesome GitHub Profile READMEs 📝
Stars: ✭ 13,674 (+35884.21%)
Mutual labels:  profile-readme
Mindula-Dilthushan
I am Mindula Dilthushan Manamperi 😋
Stars: ✭ 23 (-39.47%)
Mutual labels:  profile-readme
SamirPaul1
🤖 My GitHub Profile README ✨
Stars: ✭ 26 (-31.58%)
Mutual labels:  profile-readme
github-profile-views-counter
Github new features README profile views counter made with Yii2 framework.
Stars: ✭ 158 (+315.79%)
Mutual labels:  profile-readme
badge-generator
Magically generate Markdown badges for your docs 🛡️ 🦡 🧙
Stars: ✭ 104 (+173.68%)
Mutual labels:  badge-generator
vidyabhandary
Self updating profile readme for github
Stars: ✭ 36 (-5.26%)
Mutual labels:  profile-readme
vbriand
Yet another profile readme, but this one's mine!
Stars: ✭ 26 (-31.58%)
Mutual labels:  profile-readme
jakejarvis
hey 👋
Stars: ✭ 15 (-60.53%)
Mutual labels:  profile-readme
github-trends
🚀 Level up your GitHub profile readme with customizable cards including LOC statistics!
Stars: ✭ 179 (+371.05%)
Mutual labels:  profile-readme
github-profile-3d-contrib
This GitHub Action creates a GitHub contribution calendar on a 3D profile image.
Stars: ✭ 230 (+505.26%)
Mutual labels:  profile-readme

Discord Profile Markdown badge

Add to your GitHub readme a badge that shows your Discord username and presence!

Set up

The set up process will vary depending on what type of account you want to monitor:

User account

  1. Join the Discord server (required, as that's where the bot gets your presence information from)

  2. Add to the readme

    ![](https://dcbadge.vercel.app/api/shield/USERID)

    replacing USERID with your Discord user ID (e.g. ![](https://dcbadge.vercel.app/api/shield/406125028065804289))

Done! (Make sure not to leave the server, or this will break)

Bot account

  1. DM me () your bot's invite link

  2. Add to the readme

    ![](https://dcbadge.vercel.app/api/shield/BOTID?bot=true)

    replacing BOTID with your Discord bot's user ID (e.g. ![](https://dcbadge.vercel.app/api/shield/852977967776399400?bot=true))

Done!

HTML

The API returns an SVG image, so you can embed it in your html just like you would with a regular image by doing

<img src="https://dcbadge.vercel.app/api/shield/USERID" />

Styling

You can chain parameters by connecting them with & (e.g. ?style=flat&theme=clean&compact=true).

style

This uses shields.io to generate the badge, so you can choose one of the styles from there by appending ?style= to the url.

Badge Style Query
flat flat ?style=flat
flat-square flat-square ?style=flat-square
for-the-badge (default) for-the-badge None (default)
plastic plastic ?style=plastic
social social ?style=social

theme

You can also use the theme query option to change the colors of the shield

In the following themes the green color gets replaced by the color corresponding to your presence (green, yellow, red, and grey, for online, idle, do not disturb, and offline, respectively)

Badge Theme Query
default Default None (default)
default-inverted Default inverted ?theme=default-inverted
clean Clean ?theme=clean
clean-inverted Clean inverted ?theme=clean-inverted
dc Discord ?theme=discord
dc-inverted Discord inverted ?theme=discord-inverted
full-presence Full presence ?theme=full-presence
grey Gray ?theme=gray
blurple Blurple ?theme=blurple

Note: the theme option will not work with the social style.

compact

Badge Query
compact ?compact=true

logoColor

You can pass a color for the logo (the examples below also use &theme=default-inverted to show the color better)

Badge Query Description
presence ?logoColor=presence Changes the color of the logo according to the presence
word ?logoColor=pink Supported colors here
hex ?logoColor=ff6b6b Any hex code, without the #

I've added this to my GitHub bio and it doesn't work!

This won't work in bios, only in profile readmes (and any other part of GitHub that supports markdown). Here's some info on what a profile readme is and how to set it up.

For any questions feel free to contact me (, [email protected])

Endpoints

(Preceded by https://dcbadge.vercel.app/api/shield)

Endpoint Description Example response
/USERID returns a shield in the SVG format
/json/USERID returns the raw JSON used to generate the shields { "t": "monty#9398", "p": "online" }

The above endpoints are also valid for bots, by adding the ?bot=true query parameter

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].