Advertisement
widhisec

[Bash] rhymes-find

Apr 13th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.19 KB | None | 0 0
  1. #!/bin/bash
  2. # WIDHISEC | JANGAN RECODE HARGAI PEMBUATNYA !
  3. clear;
  4. function x(){
  5.     oo00o0="https://api.dw1.co/rhymes/find?lang=$aa&rhyme=$nama"
  6. }
  7. function banner()
  8. {
  9. printf "
  10. \t          rhymes find
  11. \t\033[0;32m________  ______ ____   ____  
  12. \t\033[0;32m\___   / /  ___// __ \_/ ___\ [ \033[1;31mCREATE \033[0;34mBY WIDHISEC ]
  13. \t\033[0;32m /    /  \___ \\  ___/\  \___https://github.com/widhisec
  14. \t\033[0;32m/_____ \/____  >\___  >\___  >
  15. \t\033[0;32m      \/     \/     \/     \/
  16. "
  17. }
  18. banner
  19. function menu()
  20. {
  21. printf "1.MULAI | 2.INFO | 3.EXIT \n"
  22. echo -n "=>"; read lOlz
  23. if [[ $lOlz == "1" ]]; then
  24.    g3t
  25.    mua
  26. elif [[ $lOlz == "2" ]]; then
  27.     printf "terima kasih sudah memakai tools saya \n"
  28.     printf "ingin bergabung group : t.me/termuxid \n"
  29.     printf "enjoyy \n"
  30. elif [[ $lOlz == "3" ]]; then
  31.     printf "byee\n"
  32. fi
  33. }
  34. #FOR =E
  35. function g3t()
  36. {
  37.             x
  38.     for x in urls; do
  39.            xw=$(curl -s $oo00o0 | jq -r .response | awk '{print $1}' | tr "[]{}" "\n")
  40.     done
  41.              
  42. }
  43. function js(){
  44.                for i in g3t; do
  45.                 printf "${xw}\n"
  46.                done
  47. }
  48. function mua()
  49. {
  50. echo -n ": "; read aa
  51. printf "bahasa :"; read nama
  52.  
  53. g3t $aa $nama
  54. js
  55. }
  56. menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement