scripts for helpdesk talks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
891 B

  1. #!/bin/bash
  2. mkdir ~/.weechat
  3. curl https://raw.githubusercontent.com/redbrick/eduScripts/master/wcconf/weechat.conf -o "$HOME/.weechat/weechat.conf"
  4. curl https://raw.githubusercontent.com/redbrick/eduScripts/master/wcconf/trigger.conf -o "$HOME/.weechat/trigger.conf"
  5. curl https://raw.githubusercontent.com/redbrick/eduScripts/master/wcconf/irc.conf -o "$HOME/.weechat/irc.conf"
  6. curl https://raw.githubusercontent.com/redbrick/eduScripts/master/wcconf/alias.conf -o "$HOME/.weechat/alias.conf"
  7. user=$(whoami)
  8. sed -i "s/USERNAME_HERE/$user/g" "$HOME/.weechat/irc.conf"
  9. echo "Have you set up your NickServ Password?(y/N)"
  10. read -r answer
  11. if echo "$answer" | grep -iq "^y" ; then
  12. echo "What is your Paswword"
  13. read -r PASS
  14. sed -i "s/NICKSERV_PASSWORD/$PASS/g" "$HOME/.weechat/irc.conf"
  15. else
  16. echo "Remeber to msg Nickserv to register"
  17. fi
  18. echo "All done just run weechat to chat to people"