#!/bin/csh -f
# slack_remote
# -----------------------------------------------------------------------------
# C shell script to access Slack at the web site, not via local app.
# -----------------------------------------------------------------------------
# Revision History:
#   $Log$
# -----------------------------------------------------------------------------

set browser = "open"
set workspace = "whatsfordinne-njq3314"
if ($#argv > 0) then
    if ("$1" == "w4dt") then
        set workspace = "whatsfordinne-njq3314"
        shift
    else if ("$1" == "phillydev")  then
        set workspace = "phillydev"
        shift
    else if ("$1" == "ptw" || "$1" == "techweek" || "$1" == "technically" || "$1" == "technical.ly")  then
        set workspace = "technically"
        shift
    else if ("$1" == "libertyjs")  then
        set workspace = "libertyjs"
        shift
    else if ("$1" == "django" || "$1" == "djangocon" || "$1" == "djangoconus" || "$1" == "djangoconus2018")  then
        set workspace = "djangoconus2018"
        shift
    else if ("$1" == "aws" || "$1" == "awsug" || "$1" == "gpawsug")  then
        set workspace = "gpawsug"
        shift
    endif
endif

echo $browser "http://$workspace.slack.com"
     $browser "http://$workspace.slack.com"