# Array associativo
declare -A clientes=(
[francisco]='192.168.1.10:9090'
[rodrigo]='192.168.1.20:23'
[paula]='192.168.1.40:29'
)
test()
{
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Importando API | |
source ShellBot.sh | |
# Token do bot | |
bot_token='<TOKEN_AQUI>' | |
# Inicializando. | |
ShellBot.init --token "$bot_token" --monitor --flush |
#!/bin/bash
#
# Requer: ShellBot v5.9
#
# Importando API
source ShellBot.sh
# script
source plot_bot.sh
#!/bin/bash
# Importando API
source ShellBot.sh
# Token do bot
bot_token='<TOKEN_AQUI>'
# Inicializando o bot
#!/bin/bash
# Delimita a entrada em 3 caracteres.
read -n3 -p 'Digite três letras:' var
echo
# Verifica a sequência armazenada em 'var' se está
# dentro do intervalo de 'a-zA-Z'
if [[ $var == +([a-Z]) ]]; then
#!/bin/bash
# Importando API
source ShellBot.sh
# Token do bot
bot_token='<TOKEN_AQUI>'
# Inicializando o bot
# Cores
readonly VERMELHO='\e[31m'
readonly VERDE='\e[32m'
readonly AMARELO='\e[33m'
readonly AZUL='\e[34m'
readonly MAGENTA='\e[35m'
readonly NEGRITO='\e[1m'
readonly SEMCOR='\e[0m'