mister-42 / mr42-cogs Goto Github PK
View Code? Open in Web Editor NEWCogs for Red - Discord Bot
License: GNU General Public License v3.0
Cogs for Red - Discord Bot
License: GNU General Public License v3.0
Not sure what I'm doing wrong but it can never resolve the channel id
!youtube publish https://youtube.com/@t-me8295
π« Unable to retrieve channel id from https://youtube.com/@t-me8295
I guess it's also not clear to me the difference between subscribe and publish π€¦ββοΈ
Thank you for your time.
So it seems to work flawlessly for some youtube channels, but then some others it returns this error. For reference, I'm adding them to the same channel on Discord.
THIS WORKED:
!yt subscribe https://www.youtube.com/@BellularGaming/ #world-of-warcraft
β
The YouTube channel Bellular Warcraft will now be announced in β world-of-warcraft when new videos are published.
THIS DID NOT WORK:
!yt subscribe https://www.youtube.com/@MrGM/ β #world-of-warcraft
π« Unable to retrieve channel id from https://www.youtube.com/@MrGM/.
Bot has admin, permission seems correct as bot will post an old video correctly upon reboot.
New videos are not being posted.
Interval is set to check every 15 mins and bot confirms.
Upon reboot an old video will be posted in the correctly set channel.
[2023-09-19 15:09:04] [ERROR] discord.ext.tasks: Unhandled exception in internal background task 'background_get_new_videos'.
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/discord/ext/tasks/__init__.py", line 239, in _loop
await self.coro(*args, **kwargs)
File "/root/.local/share/Red-DiscordBot/data/mybot/cogs/CogManager/cogs/youtube/youtube.py", line 676, in background_get_new_videos
await self.send_message(entry, channel, dchans)
File "/root/.local/share/Red-DiscordBot/data/mybot/cogs/CogManager/cogs/youtube/youtube.py", line 718, in send_message
message = await channel.send(role, file=icon, embed=embed, allowed_mentions=mentions) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/discord/abc.py", line 1561, in send
data = await state.http.send_message(channel.id, params=params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/discord/http.py", line 739, in request
raise Forbidden(response, data)
discord.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions
Would there be a way to re add from tube the 'Test' command that Grabs the latest video and posts it to the set channel to let us test if its working and how the message works
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.