Rank | Bot | Approximate Server Count | Library |
---|---|---|---|
1 | MEE6 | 21,300,000 | Custom Python |
2 | Rythm 🪦 | 15,200,000 | JDA |
3 | carl-bot |
10,900,000 | Pycord |
4 | Groovy 🪦 | 10,100,000 | JDA, Discord4J |
5 | Dyno |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getUrlVars() { | |
var vars = {}; | |
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function( | |
m, | |
key, | |
value | |
) { | |
vars[key] = value; | |
}); | |
return vars; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTTP --> HTTPS | |
if (location.protocol === "http:") { | |
location.replace(window.location.href.replace("http:", "https:")); | |
} |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cf https://support.glitch.com/t/exporting-all-projects/9367/2 | |
const fetch = require('node-fetch'); | |
const wget = require('node-wget'); | |
// cf localStorage.cachedUser in Glitch editor | |
var OWNER_TOKEN = "xxxx-yyyy-zzzzz-aaaa-bbbbb" | |
var USER_ID = "123456" | |
var PROJECT_ID = "" | |
var urlAllProjects = `https://api.glitch.com/users/${USER_ID}?authorization=${OWNER_TOKEN}` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//======================================================================================================= | |
// Create new webhook in your Discord channel settings and copy&paste URL | |
//======================================================================================================= | |
$webhookurl = "YOUR_WEBHOOK_URL"; | |
//======================================================================================================= | |
// Compose message. You can use Markdown | |
// Message Formatting -- https://discordapp.com/developers/docs/reference#message-formatting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# One liner | |
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
# Explained | |
wget \ | |
--recursive \ # Download the whole site. | |
--page-requisites \ # Get all assets/elements (CSS/JS/images). | |
--adjust-extension \ # Save files with .html on the end. | |
--span-hosts \ # Include necessary assets from offsite as well. | |
--convert-links \ # Update links to still work in the static version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def handle_call({:publish, message}, _from, %{sessions: sessions}=state) do | |
Enum.each(sessions, &send(&1.pid, message)) | |
{:reply, :ok, state} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//temp.php | |
//Celsius to Fahrenheit ° F = 9/5 ( ° C) + 32 | |
//Fahrenheit to Celsius ° C = 5/9 (° F - 32) | |
//Celsius to Kelvin K = ° C + 273.15 | |
//Kelvin to Celsius ° C = K - 273.15 | |
//Fahrenheit to Kelvin K = 5/9 (° F - 32) + 273.15 | |
//Kelvin to Fahrenheit ° F = 9/5 (K - 273.15) + 32 |
Here's a 'simple' way to get the YouTube subscriber number from Google's Youtube API v3:
- Go to https://console.developers.google.com/apis/library
- Log in with your Google account.
- Next to the logo click on 'Project' and 'Create project'. Name it whatever you want and click on 'Create'.
- Wait until the project is created, the page will switch to it by itself, it will take a couple of seconds up to a minute. Once it's done it will be selected next to the logo.
- Once it's created and selected, click on 'Credentials' from the menu on the left.
- Click on 'Create Credentials' and choose 'API Key'. You can restrict it to specific IPs, or types of requests (website, android, ios etc.) if you want, it's safer that way.