mirror of
https://github.com/danog/captionbot-clients.git
synced 2024-11-30 04:18:58 +01:00
Update bot.
This commit is contained in:
parent
f4f1600217
commit
08fd6d3ffd
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
count
|
bash/token
|
||||||
|
@ -349,7 +349,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
"broadcast")
|
"broadcast")
|
||||||
echo "Sending the broadcast $* to $(wc -l count | sed 's/count//g')users."
|
echo "Sending the broadcast $* to $(wc -l count | sed 's/count//g')users."
|
||||||
[ $(wc -l count | sed 's/ count//g') -gt 300 ] && sleep="sleep 0.5"
|
[ $(wc -l count | sed 's/ count//g') -gt 100 ] && sleep="sleep 1"
|
||||||
shift
|
shift
|
||||||
for f in $(cat count);do send_message ${f//COUNT} "$*"; $sleep;done
|
for f in $(cat count);do send_message ${f//COUNT} "$*"; $sleep;done
|
||||||
;;
|
;;
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
if [ "$1" = "source" ];then
|
if [ "$1" = "source" ];then
|
||||||
# Edit the token in here
|
# Edit the token in here
|
||||||
|
source token
|
||||||
# Set INLINE to 1 in order to receive inline queries.
|
# Set INLINE to 1 in order to receive inline queries.
|
||||||
# To enable this option in your bot, send the /setinline command to @BotFather.
|
# To enable this option in your bot, send the /setinline command to @BotFather.
|
||||||
INLINE=0
|
INLINE=0
|
||||||
@ -13,9 +14,14 @@ else
|
|||||||
if ! tmux ls | grep -v send | grep -q $copname; then
|
if ! tmux ls | grep -v send | grep -q $copname; then
|
||||||
[ ! -z $ALLOW ] && {
|
[ ! -z $ALLOW ] && {
|
||||||
send_action ${USER[ID]} typing
|
send_action ${USER[ID]} typing
|
||||||
convert $ALLOW $NAME.jpg
|
if echo "$ALLOW" | grep -qE '.jpg$\|.png$\|.jpeg$'; then
|
||||||
result=$(./captionbot.sh $NAME script)
|
wut=$ALLOW
|
||||||
rm $NAME
|
else
|
||||||
|
convert $ALLOW /tmp/$MESSAGE_ID.jpg
|
||||||
|
wut=/tmp/$MESSAGE_ID.jpg
|
||||||
|
fi
|
||||||
|
result=$(./captionbot.sh $wut script)
|
||||||
|
rm /tmp/$MESSAGE_ID.jpg &>/dev/null
|
||||||
res=$(curl -s "$MSG_URL" -d "chat_id=${USER[ID]}" -d "text=$result" -d "reply_to_message_id=$MESSAGE_ID")
|
res=$(curl -s "$MSG_URL" -d "chat_id=${USER[ID]}" -d "text=$result" -d "reply_to_message_id=$MESSAGE_ID")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
191
bash/count
Normal file
191
bash/count
Normal file
@ -0,0 +1,191 @@
|
|||||||
|
COUNT32709704
|
||||||
|
COUNT62056065
|
||||||
|
COUNT101374607
|
||||||
|
COUNT196536622
|
||||||
|
COUNT161746920
|
||||||
|
COUNT169113237
|
||||||
|
COUNT-116266044
|
||||||
|
COUNT3642603
|
||||||
|
COUNT196016815
|
||||||
|
COUNT161327467
|
||||||
|
COUNT107686563
|
||||||
|
COUNT74189750
|
||||||
|
COUNT131693439
|
||||||
|
COUNT34091368
|
||||||
|
COUNT6089860
|
||||||
|
COUNT64816992
|
||||||
|
COUNT38936366
|
||||||
|
COUNT170005295
|
||||||
|
COUNT184379176
|
||||||
|
COUNT89582635
|
||||||
|
COUNT175038880
|
||||||
|
COUNT117046742
|
||||||
|
COUNT152071495
|
||||||
|
COUNT150024628
|
||||||
|
COUNT151158724
|
||||||
|
COUNT209066247
|
||||||
|
COUNT-85491498
|
||||||
|
COUNT50413379
|
||||||
|
COUNT108196371
|
||||||
|
COUNT193268
|
||||||
|
COUNT-31186501
|
||||||
|
COUNT9122210
|
||||||
|
COUNT59625577
|
||||||
|
COUNT40955937
|
||||||
|
COUNT49013860
|
||||||
|
COUNT-12517764
|
||||||
|
COUNT121250082
|
||||||
|
COUNT4319248
|
||||||
|
COUNT217789727
|
||||||
|
COUNT11516883
|
||||||
|
COUNT20944408
|
||||||
|
COUNT2467550
|
||||||
|
COUNT765511
|
||||||
|
COUNT217446421
|
||||||
|
COUNT91427207
|
||||||
|
COUNT169379368
|
||||||
|
COUNT-1001037206398
|
||||||
|
COUNT129767595
|
||||||
|
COUNT25571068
|
||||||
|
COUNT124204626
|
||||||
|
COUNT11441983
|
||||||
|
COUNT84955547
|
||||||
|
COUNT205303859
|
||||||
|
COUNT-116346118
|
||||||
|
COUNT197731220
|
||||||
|
COUNT198245150
|
||||||
|
COUNT213495775
|
||||||
|
COUNT36634566
|
||||||
|
COUNT46374256
|
||||||
|
COUNT60334397
|
||||||
|
COUNT45998624
|
||||||
|
COUNT84990877
|
||||||
|
COUNT32516733
|
||||||
|
COUNT22421348
|
||||||
|
COUNT110338651
|
||||||
|
COUNT62201425
|
||||||
|
COUNT131974441
|
||||||
|
COUNT148794813
|
||||||
|
COUNT55922789
|
||||||
|
COUNT120682201
|
||||||
|
COUNT35426514
|
||||||
|
COUNT27126343
|
||||||
|
COUNT163997582
|
||||||
|
COUNT41596075
|
||||||
|
COUNT176774282
|
||||||
|
COUNT47495836
|
||||||
|
COUNT48445706
|
||||||
|
COUNT75324726
|
||||||
|
COUNT-11436844
|
||||||
|
COUNT44066706
|
||||||
|
COUNT58022840
|
||||||
|
COUNT20236241
|
||||||
|
COUNT21092171
|
||||||
|
COUNT36132696
|
||||||
|
COUNT34988999
|
||||||
|
COUNT40443247
|
||||||
|
COUNT112526952
|
||||||
|
COUNT107464930
|
||||||
|
COUNT93655883
|
||||||
|
COUNT114022792
|
||||||
|
COUNT26170256
|
||||||
|
COUNT119063642
|
||||||
|
COUNT213199340
|
||||||
|
COUNT25541715
|
||||||
|
COUNT33302924
|
||||||
|
COUNT58779664
|
||||||
|
COUNT54629929
|
||||||
|
COUNT130780238
|
||||||
|
COUNT55507636
|
||||||
|
COUNT147363623
|
||||||
|
COUNT-1001037871125
|
||||||
|
COUNT159705163
|
||||||
|
COUNT13022558
|
||||||
|
COUNT176438444
|
||||||
|
COUNT-31606461
|
||||||
|
COUNT201611897
|
||||||
|
COUNT-1001033731109
|
||||||
|
COUNT-52809362
|
||||||
|
COUNT-1001035360264
|
||||||
|
COUNT51316649
|
||||||
|
COUNT178038468
|
||||||
|
COUNT166870301
|
||||||
|
COUNT-33180688
|
||||||
|
COUNT80356584
|
||||||
|
COUNT23832875
|
||||||
|
COUNT187487377
|
||||||
|
COUNT131593547
|
||||||
|
COUNT-1001022046952
|
||||||
|
COUNT-23951556
|
||||||
|
COUNT216533255
|
||||||
|
COUNT5225368
|
||||||
|
COUNT182973842
|
||||||
|
COUNT31555568
|
||||||
|
COUNT162846121
|
||||||
|
COUNT99873537
|
||||||
|
COUNT138174634
|
||||||
|
COUNT-122162764
|
||||||
|
COUNT31488104
|
||||||
|
COUNT106996135
|
||||||
|
COUNT-141050820
|
||||||
|
COUNT-114610770
|
||||||
|
COUNT82877387
|
||||||
|
COUNT4979594
|
||||||
|
COUNT1599839
|
||||||
|
COUNT106806189
|
||||||
|
COUNT-61645051
|
||||||
|
COUNT98695240
|
||||||
|
COUNT81352413
|
||||||
|
COUNT31562573
|
||||||
|
COUNT25561160
|
||||||
|
COUNT8623050
|
||||||
|
COUNT112375923
|
||||||
|
COUNT181181569
|
||||||
|
COUNT80537834
|
||||||
|
COUNT-117251462
|
||||||
|
COUNT178601264
|
||||||
|
COUNT101274668
|
||||||
|
COUNT126169442
|
||||||
|
COUNT26916941
|
||||||
|
COUNT189874994
|
||||||
|
COUNT84107582
|
||||||
|
COUNT68357902
|
||||||
|
COUNT148911082
|
||||||
|
COUNT148065401
|
||||||
|
COUNT149461536
|
||||||
|
COUNT78313479
|
||||||
|
COUNT26731298
|
||||||
|
COUNT150975709
|
||||||
|
COUNT14245552
|
||||||
|
COUNT146705200
|
||||||
|
COUNT129247191
|
||||||
|
COUNT169194632
|
||||||
|
COUNT129385002
|
||||||
|
COUNT5353253
|
||||||
|
COUNT164970187
|
||||||
|
COUNT40409371
|
||||||
|
COUNT96862845
|
||||||
|
COUNT136072985
|
||||||
|
COUNT4623665
|
||||||
|
COUNT79142751
|
||||||
|
COUNT156715207
|
||||||
|
COUNT77692761
|
||||||
|
COUNT58608828
|
||||||
|
COUNT203887950
|
||||||
|
COUNT-1001037976743
|
||||||
|
COUNT-1001047577851
|
||||||
|
COUNT22045866
|
||||||
|
COUNT84569168
|
||||||
|
COUNT169949689
|
||||||
|
COUNT10030935
|
||||||
|
COUNT172134754
|
||||||
|
COUNT75537680
|
||||||
|
COUNT-1001006277564
|
||||||
|
COUNT132445942
|
||||||
|
COUNT125883301
|
||||||
|
COUNT84255628
|
||||||
|
COUNT116308853
|
||||||
|
COUNT35897945
|
||||||
|
COUNT74447567
|
||||||
|
COUNT172985049
|
||||||
|
COUNT116885101
|
Loading…
Reference in New Issue
Block a user