GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tsukumijima/ShadowbanAlerts: Twitter アカウントへのシャドウバンが開始・解除された時に Discord に通知するツール

This repository was archived by the owner on Nov 28, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
License.txt
License.txt
 
 
Pipfile
Pipfile
 
 
Pipfile.lock
Pipfile.lock
 
 
Readme.md
Readme.md
 
 
ShadowbanAlerts.py
ShadowbanAlerts.py
 
 
ShadowbanAlertsConfig.example.py
ShadowbanAlertsConfig.example.py
 
 

Repository files navigation

ShadowbanAlerts


Twitter アカウントへのシャドウバンが開始・解除された時に Discord に通知するツールです。

導入

Windows でも Linux でも動くと思いますが、動作確認は Linux でしかしていません。
事前に Python 3.10 / pip / pipenv / Git がインストールされていることが前提です。

git clone https://github.com/tsukumijima/ShadowbanAlerts.git
cd ShadowbanAlerts/
cp ShadowbanAlertsConfig.example.py ShadowbanAlertsConfig.py
PIPENV_VENV_IN_PROJECT="true" pipenv sync

設定

ShadowbanAlertsConfig.py は設定ファイルです。

SCREEN_NAMES にはシャドウバンをチェックするアカウントのスクリーンネーム (@から始まるID) を指定します。
Python のリスト形式になっているので、例にある通り複数のアカウントを指定できます。

MENTION_TO にはメンション先の Discord アカウントの ID を指定します。
ID は Discord の設定から開発者モードを有効化し、自分のユーザーアイコンを右クリックで出てくる [IDをコピー] から取得できます。 MENTION_TO = None に設定するとメンションされません。

WEBHOOK_URL には Discord の Webhook URL を設定します。
Discord の Webhook URL は別途取得してください。https://discord.com/api/webhooks/~ のような URL になります。

実行

単独で実行させる場合は、python3.10 ./ShadowbanAlerts.py と実行します。
この時点でいずれかのアカウントがシャドウバンされている場合は、Discord の Webhook を設定したチャンネルに通知が送信されます。

ShadowbanAlerts は常時起動機能を持ちません。継続的に実行させたい場合は、Cron やタスクスケジューラなどに ShadowbanAlerts を登録する必要があります。
以下に Cron で1分おきに ShadowbanAlerts を実行させる例を示します (ubuntu は一般ユーザー)。

*/1 * * * * /home/ubuntu/ShadowbanAlerts/.venv/bin/python /home/ubuntu/ShadowbanAlerts/ShadowbanAlerts.py

License

MIT License

About

Twitter アカウントへのシャドウバンが開始・解除された時に Discord に通知するツール

Topics

discordpythonshadowbantwitter

Resources

Readme
MIT license
Activity

Stars

13 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.