Last active
August 11, 2016 23:53
-
-
Save Xenthys/6b02d4f8fe161d03f643d35b60129d59 to your computer and use it in GitHub Desktop.
A shell script to generate an IRC command to op you in a channel
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
#!/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)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment