Giter VIP home page Giter VIP logo

mr42-cogs's People

Contributors

mister-42 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

mr42-cogs's Issues

Unable to retrieve channel id from...

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/.

Not fetching or posting new videos

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

[Suggestion] Test the message

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.