wallabot
wallabot copied to clipboard
A simple Wall-a-bag Discord Bot!
Wallabot
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.
Setup
Critical prerequisites to install
-
run
pip3 install -r requirements.txt
-
Rename the file
.env.dev
to.env
Step 1: Create a Discord bot
- 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
Step 2: Create a wallabag account
- Go to https://wallabag.nixnet.services/login and create account
- Store the Username and Password to
.env
under theUSERNAME
andPASSWORD
Step 3: Official API authentication
Generate Client ID and Client Secret
-
Go to https://wallabag.nixnet.services/developer
-
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
Step 3: Run the bot on the desktop
-
Open a terminal or command prompt
-
Navigate to the directory where you cloned the wallabot
-
Run
python3 main.py
to start the bot
Have a good chat!
Optional: For a specific channel
- Right-click the channel you want the bot to listen for messages,
Copy ID
- paste it into
.env
underDISCORD_CHANNEL_ID