
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
botyo-command-youtube
Advanced tools
The YouTube Command for Botyo posts a YouTube video to the chat.
#yt <search query>
or
#youtube <search query>
For example:
#yt Starboy
#yt ozzy man cat vs mantis
You need to obtain an API key to use the YouTube Data API. Please refer to the YouTube API Reference for instructions how to do so.
Step 1. Install the module from npm.
npm install --save botyo-command-youtube
Step 2. Configure the API key in your configuration file config.yaml
modules:
YouTubeCommand:
apiKey: YOUR_YOUTUBE_API_KEY # https://developers.google.com/youtube/v3/docs/#calling-the-api
Step 3. Register the module.
import Botyo from "botyo";
import YouTubeCommand from "botyo-command-youtube"
Botyo.builder()
...
.registerModule(YouTubeCommand)
...
.build()
.start();
The configuration of the YouTube command modules has some sensible defaults. However, you can still override the defaults if you need to.
modules:
YouTubeCommand:
apiKey: YOUR_YOUTUBE_API_KEY # https://developers.google.com/youtube/v3/docs/#calling-the-api
regionCode: US # Return search results for the specified country. (ISO 3166-1 alpha-2 country code)
order: relevance # Method to use to order videos: date/rating/relevance/title/viewCount
safeSearch: moderate # Indicates whether the search results should include restricted content as well as standard content; moderate/none/strict
You can override all configuration properties (except apiKey
) on a per-chat-thread basis. For example:
modules:
YouTubeCommand:
apiKey: YOUR_YOUTUBE_API_KEY
regionCode: US
order: relevance
safeSearch: moderate
chat-threads:
SOME_CHAT_THREAD_ID:
overrides:
modules.YouTubeCommand:
regionCode: BG
order: viewCount
OTHER_CHAT_THREAD_ID:
overrides:
modules.YouTubeCommand:
enable: false # disables the command for this chat thread
FAQs
YouTube command for Botyo
The npm package botyo-command-youtube receives a total of 0 weekly downloads. As such, botyo-command-youtube popularity was classified as not popular.
We found that botyo-command-youtube demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.