Skip to content

A basic discord bot that gathers top stories from Hacker News and displays them for you in your desired discord channel. This bot has a few basic commands

Notifications You must be signed in to change notification settings

EthanM97/news-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

News Discord Bot

This Discord bot fetches the top stories from Hacker News and posts them in your specified Discord channel.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have a Discord account and have created a bot on the Discord Developer Portal.
  • You have installed Python 3.8 or higher on your machine.

Setup Instructions

Follow these steps to set up the News Discord Bot:

  1. Clone the repository:
git clone https://github.com/EthanM97/news-discord-bot.git
cd news-discord-bot
  1. Create a virtual environment:

For Unix/macOS:

python3 -m venv venv
source venv/bin/activate

For Windows:

python -m venv venv
.\venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Configure your bot:

Open the news_bot.py file and replace YOUR_BOT_TOKEN with your actual Discord bot token.

  1. Run the bot:
python news_bot.py

Commands

  • !greeting: The bot will respond with a greeting message.
  • !news: The bot fetches and posts the top stories from Hacker News.
  • !clear: The bot will clear the last 50 messages in the channel.

About

A basic discord bot that gathers top stories from Hacker News and displays them for you in your desired discord channel. This bot has a few basic commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages