/JoDotNetModules

These modules are used for Discord Bots, but feel free to use them how you wish.

Primary LanguagePythonMIT LicenseMIT

JoDotNetModules

This Library will give you access to the latest videoes of a YouTube channel and Twitch Live notifications. It is easy to install; you only run the setup and do routine checks.

It is best used with Discord Bots

YouTube Example

import time
from jodotnetmodules import youtuberequests

CHANNEL_ID = "Enter_YouTube_Channel_ID"
API_KEY = "Enter_Your_Secret_API_Key"
LOCATION = r"C:\Users\user\Desktop\ExampleFolder"


# Only run this once, if you run it multiple times it will mess the files up.
youtuberequests.SETUP(id=CHANNEL_ID, key=API_KEY, location=LOCATION)


# This loop will print out the status, if there is any new videos it will print it out.
while True:
    request = youtuberequests.CheckVideos(location=LOCATION)
    print(request)
    time.sleep(1800)