aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2022-01-23 15:35:11 +0000
committernodiscc <nodiscc@gmail.com>2022-01-23 15:35:11 +0000
commit4469a7ca5b8e1da43784881c3e32435604b8be61 (patch)
treee0272fdcbf7d128052296f55c10226ae3941dc63
parenttools: fix detection of Lil License v1 by 'make check_all' (diff)
downloadawesome-selfhosted-4469a7ca5b8e1da43784881c3e32435604b8be61.tar.gz
awesome-selfhosted-4469a7ca5b8e1da43784881c3e32435604b8be61.zip
tools: awesome_bot: add 1s delay between requests, fix awesome_bot installation docs
- prevent HTTP 429 error on github projects
-rwxr-xr-xMakefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9a22b381..1b391fe0 100755
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
SHELL = /bin/bash
-AWESOME_BOT_OPTIONS = --allow-redirect --skip-save-results --allow 202 --white-list flaskbb.org,nitter.net,airsonic.github.io/docs/apps
+AWESOME_BOT_OPTIONS = --allow-redirect --request-delay 1 --skip-save-results --allow 202 --white-list flaskbb.org,nitter.net,airsonic.github.io/docs/apps
all: check_all
@@ -21,9 +21,9 @@ check_syntax_diff:
awesome_bot -f temp.md $(AWESOME_BOT_OPTIONS)
# check dead links
-# https://github.com/dkhamsing/awesome_bot
+# sudo apt install ruby && install --user-install awesome_bot
awesome_bot:
- awesome_bot -f README.md $(AWESOME_BOT_OPTIONS)
+ ~/.local/share/gem/ruby/2.7.0/bin/awesome_bot -f README.md $(AWESOME_BOT_OPTIONS)
# check date of last commit for github.com repository URLs
check_github_commit_dates: