diff options
author | haturatu <haturatu> | 2024-02-20 00:44:03 +0900 |
---|---|---|
committer | haturatu <haturatu> | 2024-02-20 00:44:03 +0900 |
commit | c6e85b79cb5d6b1f98c480d918ccfff3f4636e70 (patch) | |
tree | e1a939e06eaa5e167718ac980755b1a875e139e4 /rmspam/rmspam.sh | |
parent | 498cd11c2347f038a6b6e3167ca5052c66a0f2f4 (diff) |
spam account removemaster
Diffstat (limited to 'rmspam/rmspam.sh')
-rw-r--r-- | rmspam/rmspam.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/rmspam/rmspam.sh b/rmspam/rmspam.sh new file mode 100644 index 0000000..8c7ba7e --- /dev/null +++ b/rmspam/rmspam.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Mastodonユーザで実行してください +# rmspamディレクトリのフォルダの所有権限をmastodon:mastodonに変更してください +# spam_block.rbの17行目も変更してください +# delid.rbの4行目を変更してください。 + +# あなたのフォルダとドメインに変更 +execdir=/your/dir/rmspam +your_domain= + +echo "$your_domain" +$execdir/spam_block.rb +grep "$your_domain" spam.txt > delid.txt +sed -i "s/($your_domain)//g" delid.txt +sort delid.txt | uniq > tmp.txt +$execdir/delid.rb + +rm delid.txt spam.txt tmp.txt # SPAM IDのテキストファイルを残すならこの行をコメントアウトする |