This file contains 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
import aiohttp | |
import discord | |
from datetime import datetime | |
from io import BytesIO | |
from PIL import Image | |
from PIL import ImageStat | |
TOKEN = "YOUR DISCORD TOKEN HERE" | |
THRESHOLD = 192 # brightness threshold... How close it is to being fully white |
This file contains 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 | |
if(isset($_GET['url'])){ | |
$url = $_GET['url']; | |
$imginfo = getimagesize($url); | |
header("Content-type: " . $imginfo['mime']); | |
readfile($url); | |
}else{ | |
exit(); | |
} |