This Slack bot listens for messages containing arXiv PDF links and automatically replies with the corresponding arXiv abstract links.
- Python 3.6+
- slack-bolt and slack-sdk libraries
- python-dotenv library
- Clone the repository: git clone https://github.com/Nadav-out/arxiv-abstract-bot.git cd arxiv-abstract-bot
- Install the required packages: pip install slack-bolt slack-sdk python-dotenv
- Create a
.env
file in the project directory and add your Slack app and bot tokens:SLACK_APP_TOKEN=your_app_token SLACK_BOT_TOKEN=your_bot_token
Replaceyour_app_token
andyour_bot_token
with the actual tokens from your Slack app.
Run the bot:
python app.py
The bot will now listen for messages containing arXiv PDF links in all channels/groups it is invited to and automatically reply with the corresponding abstract links.