Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. ############ if then, if then, else
  2. *JOIN*) who=$(echo "$res" | perl -pe "s/:(.*)\!.*@.*/\1/")
  3. if [ "$who" = "TripleZer0" ]
  4. then echo "PRIVMSG $channel Get this man some whiskey and some darts!!! " >> $input
  5. elif [ "$who" = "Megatron" ]
  6. then echo "PRIVMSG $channel BACK BISHES!!!" >> $input
  7. else echo "PRIVMSG $channel sTaY eViL $who" >> $input
  8. fi
  9. ;;
  10. ############# u can only use if once then after that if must be elif. also u can keep making elifs after the first one. one more thing... u dont have to have an else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement