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
#!/usr/bin/env python | |
# This script shall be distributed under the "who cares" license. | |
# Just leave this note here stating that Polsaker | |
# (https://github.com/Polsaker) created this. | |
# Usage: img2irc.py image.png [-rgb] | |
# With -rgb the script uses RGB to compare colors instead of L*A*B*. | |
# It is faster but it might lead to worse (or better ;D) image quality |
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
#!/bin/bash | |
if [[ -z "$1" ]]; then | |
printf "You need to specify a channel, dumbass.\n" >&2 | |
exit | |
fi | |
printf "/join #%s,0\n" "$(echo "$1"|sha256sum|head -c12)" |