Discord BOT for Youtube Subscription/Notification using Python 3
- Python >= 3.6 (I'm testing on 3.9 but all 3.x should work, 3.6 or later for sure)
- Discord Application (aka.
Bot
) - Youtube Data API
- little knowledge about Python, Pip, API, Discord (Also Thai if you want to translate this app, just kidding 😄)
-
Clone
this project to your PC (aka.download
) -
install require libraries using pip from
requirements.txt
> pip install -r requirements.txt
-
config your Bot using
.env
file. you can use.env.example
file for reference or just copy paste and rename it to.env
. -
migrate your database using
pem
> pem migrate
-
run your Bot
bot.py
> python bot.py
- No need Webhook or Public IP
- Lightweight
- Easy to use
- BUGS
- Not a
realtime
update (cause Youtube's RSS feed cache)
- This bot is now Thai, you can translate it by replacing text in it's code
- This boi is not smooth like criminal. I'm just creating it cause I need to rest from my work for about a few hours.
It's need a lot of
refactor
to be looking good, I will do it if I have to :P - This boi is half
OOP
andFP
, I'm design it to beOOP
in my head but I just forget it ? Imay
change this Boi to MVC in the future. - Many lines in this project just fked up with
best practices
. so 1) just reading my code only for understand how it works don't ever think to copy it and 2) Don't do this with your own works or your company's works.