Skip to content

Zephxr/mtg-news-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MTG Article Discord Bot

This bot monitors the Magic: The Gathering news archive and sends notifications to a Discord channel when new articles are published.

Setup

  1. Install the required dependencies:
pip install -r requirements.txt
  1. Create a Discord webhook:

    • Go to your Discord server
    • Right-click on the channel where you want to receive notifications
    • Select "Edit Channel"
    • Go to "Integrations"
    • Click "Create Webhook"
    • Copy the webhook URL
  2. Configure the bot:

    • Copy .env.example to .env
    • Replace your_webhook_url_here with your actual Discord webhook URL

Usage

Windows (Task Scheduler)

  1. Open Task Scheduler
  2. Create a new Basic Task
  3. Set the trigger to run every 5 minutes
  4. Set the action to "Start a program"
  5. Set the program to python and add arguments as the full path to your script
  6. Complete the wizard

Linux (Cron)

Add this line to your crontab:

*/5 * * * * /usr/bin/python3 /path/to/mtg_article_bot.py

The bot will:

  • Check for new articles when triggered
  • Send a notification to your Discord channel when a new article is found
  • Store the last seen article to avoid duplicate notifications

Features

  • Monitors the Magic: The Gathering news archive
  • Sends formatted Discord embeds with article titles and links
  • Prevents duplicate notifications
  • Error handling and logging
  • Cron job compatible

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages