Giter VIP home page Giter VIP logo

discord-youtube's Introduction

discord-youtube

Discord-youtube is an automated, simple Package, which allows you to Easily integrate to your Discord Bot a Youtube Poster. > This means, that it logs new Videos, or Streams and sends them to a Channel, you can define the Name, Link, User, and more! > It is very fast and a scraper, so you don't need an API KEY. > Also it is up to Date and includes JOSH, so you can decide if you wanna use the DEFAULT, JSON DB, SQLITE or Mongoose

Credits

Base is from Tomato's version.

Installation

npm install discord-youtube@latest
const YoutubePoster = require("discord-youtube");
//Suggesting to require it once the bot is online, to reduce bugs...
client.on("ready", () => client.YTP = new YoutubePoster(client));
//use the methods
client.YTP.<Method>(<Options>); //returns -> Promise -> <OBJECT/ARRAY -- CHANNEL DATA>
//The logging is the package doing for you, you just need to use the setChannel() function in order to set the first channel which should get listened to!

๐Ÿ“ซ Join our Discord Server for Support


๐Ÿ—‚ For more help view Documentation


๐Ÿ˜Ž Features

  • โญ๏ธ No Api Key needed - scraping
  • ๐Ÿ›  Easy to use
  • ๐Ÿ‘€ Faster then light
  • ๐Ÿ’ช Up to Date
  • ๐Ÿค™ Infinite Channels, with infite amount of options
  • ๐Ÿค– Flexible

๐Ÿง  Methods


๐Ÿฅฐ Examples


๐Ÿคฉ Responses

discord-youtube's People

Contributors

dependabot[bot] avatar tovade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

quangloc24

discord-youtube's Issues

The getChannelInfo() method returns "Promise { <pending> }"

I have a command that uses the getChannelInfo() method: getytchannelinfo.js
When I console.log(channelinfo), it returns nothing but Promise { <pending> }

Here is my code for getytchannelinfo.js:

const { MessageEmbed } = require('discord.js')

module.exports = {
	name: 'getytchannelinfo',
	description: 'Gets information about a YouTube channel.',
  options: [{
    name: 'ytchannel',
    description: 'The YouTube channel whose information to get.',
    type: 'STRING',
    required: true
  }],
	async execute(interaction) {
    const ytchannel = interaction.options.getString('ytchannel')

    const channelinfo = interaction.client.YTP.getChannelInfo(ytchannel)


    await interaction.reply(channelinfo.toString())
    console.log(channelinfo)
    
	},
};

Edit: Same issue also happening with getLatestVideos() method

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.