Added useful functions

This commit is contained in:
root 2021-03-26 23:46:41 +01:00
parent 9563be75d1
commit 33623eff59

View File

@ -1,8 +0,0 @@
#!/bin/bash
LIST=$(sudo -u ejabberd ejabberdctl connected_users_info | cut -f 1 | cut -d "/" -f 1 | grep $1 | uniq)
for ADDRESS in $LIST
do
sudo -u ejabberd ejabberdctl send_message headline chapril.org "$ADDRESS" "Annonce du Serveur" "$2"
echo Done with $ADDRESS
done