-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.sh
More file actions
39 lines (34 loc) · 973 Bytes
/
main.sh
File metadata and controls
39 lines (34 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# Warna
GREEN='\033[1;32m'
YELLOW='\033[1;33m'
CYAN='\033[1;36m'
RESET='\033[0m'
# Header
clear
echo -e "${CYAN}=====================================${RESET}"
echo -e "${GREEN} Welcome to SpamTex! ${RESET}"
echo -e "${CYAN}=====================================${RESET}"
echo -e "${YELLOW}* Developer:${RESET} Nozz Trick"
echo -e "${YELLOW}* Github :${RESET} https://github.com/Nozz7z"
echo -e "${YELLOW}* Version :${RESET} 1.0"
echo ""
# Input
read -p "$(echo -e "${CYAN}[?]${RESET} Input Text : ")" spam_text
read -p "$(echo -e "${CYAN}[?]${RESET} Text Amount : ")" total
echo ""
# Timer sebelum mulai spam
echo -e "${GREEN}[!] Spamming will start in...${RESET}"
for i in 3 2 1; do
echo -ne "${YELLOW}$i...${RESET} \r"
sleep 1
done
echo -e " "
# Mulai spam
echo -e "${GREEN}[!] Spamming started!${RESET}"
i=1
while [ "$i" -le "$total" ]; do
echo -n "$spam_text "
i=$((i+1))
done
echo -e "\n${GREEN}[✓] Done.${RESET}"