Cog-Creators / Cog-Creators/Red-DiscordBot

Add oauth support for audio cog

Open
#6,537 2 comments 1 reaction 0 assignees View on GitHub
Status: Needs Discussion Type: Enhancement
Dominant language
Python
Stars
5.7k
Forks
2.5k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

### What component of Red (cog, command, API) would you like to see improvements on?

Audio

### Describe the enhancement you're suggesting.

Right now, the only way to set up YouTube OAuth is to switch to an unmanaged node. However, this could be added as a feature in the Audio cog.

Here’s how I see it:
`!llset config oauth // Toggles OAuth login`
When enabled, the managed node is stopped and restarted with updated application.yml parameters, setting oauth.enabled: true.
Lavalink outputs an OAuth link and code to stdout, which can be parsed and sent to the owner's DMs.
After logging in, the refresh token must be extracted (from stdout), saved, and used to update application.yml. When !llset config oauth is toggled off, the refresh token is reset, requiring the OAuth setup process to be repeated.

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.