Skip to content

Instantly share code, notes, and snippets.

@holysugar
Created March 14, 2013 04:10
Show Gist options
  • Select an option

  • Save holysugar/5158733 to your computer and use it in GitHub Desktop.

Select an option

Save holysugar/5158733 to your computer and use it in GitHub Desktop.
~/bin/sasami
#!/bin/sh
# ikachan wrapper
ikachan=http://IKACHANHOST:4979
if [ -z "$2" ]; then
echo "Usage: $0 channel message"
fi
channel=$(echo $1 | sed -E 's/^[^0-9A-Za-z_]/#/')
message=$2
curl -F "channel=$channel" -F "message=$message" $ikachan/notice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment