npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

discordjs-activity

v1.4.2

Published

An simple package to create an Activity in Discord Voice Channel using Discord.js v12

Downloads

226

Readme

📂 | Installation

npm install discordjs-activity
# (or)
yarn add discordjs-activity

📜 | Setup

const { Client } = require("discord.js")//Importing client
const client = new Client()//creating a new discord.js client
require("discordjs-activity")(client)//Importing this package and initiating it with the client

✍ | Examples

require("discordjs-activity")//Import first
const { Client } = require("discord.js")
const client = new Client()

client.on("message", async (message) => {
    if(message.author.bot)return
    if(message.content === "youtube"){
        let VoiceChannel = client.channels.cache.get("Voice Channel ID")//Voice Channel ID
        let Invite = await VoiceChannel.activityInvite("youtube_together")//Application Name [youtube_together, fishington, chess_in_the_park, betrayal, poker_night, chess_in_the_park_dev]
        if(Invite) {
          message.channel.send("https://discord.com/invite/"+Invite.code)// send's invite link in the channel
        }
    }
})

client.login("Super secret token")

All of our Examples and activites are in examples.js If you have any other problems/questions, you can join our Support Server!

✨ | Application Info

Poker Night

Application Name: poker_night

Client ID: 755827207812677713

Betrayal.io

Application Name: betrayal

Client ID: 880218394199220334

YouTube Together

Application Name: youtube_together

Client ID: 755600276941176913

Watch Together Dev

Application Name: watch_together_dev

Client ID: 880218832743055411

Fishington.io

Application Name: fishington

Client ID: 814288819477020702

Chess in the Park

Application Name: chess_in_the_park

Client ID: 832012774040141894

Chess in the Park Development

Application Name: chess_in_the_park_dev

Client ID: 832012586023256104

Doodle Crew

Application Name: doodlecrew

Client ID: 878067389634314250

Word Snacks

Application Name: wordsnacks

Client ID: 879863976006127627

Letter Tile

Application Name: lettertile

Client ID: 879863686565621790 Even more coming soon in future

👥 | Support Server