This Python script is a Discord bot that extracts the title and saves a link to Wallabag from article sites like Wall Street Journal, New York Times, The Economist, Business Insider, Financial Times etc. shared in a specified channel.
-
run
pip3 install -r requirements.txt
-
Rename the file
.env.dev
to.env
- Go to https://discord.com/developers/applications create an application
- Build a Discord bot under the application
- Click Reset Token and then copy the token
- Turn ALL INTENT
ON
- Invite your bot to your server via OAuth2 URL Generator
- Go to https://wallabag.nixnet.services/login and create account
- Store the Username and Password to
.env
under theUSERNAME
andPASSWORD
-
Click CREATE A NEW CLIENT
- Fill the Name of the client, Click CREATE A NEW CLIENT again
- Store the Client ID and Client Secret to
.env
under theCLIENT_ID
andCLIENT_SECRET
- You're all set for Step 3
-
Open a terminal or command prompt
-
Navigate to the directory where you cloned the wallabot
-
Run
python3 main.py
to start the bot
- Right-click the channel you want the bot to listen for messages,
Copy ID
- paste it into
.env
underDISCORD_CHANNEL_ID