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

discordpath-js

v1.4.0

Published

discordbot commands using js

Downloads

24

Readme

Discord bot template using javascript

Install:

npm i discordpath-js

Support:

  1. Moderator:
	- ban:					|	ban a member
	- bans:					|   	view baned list 
	- chnick:				|	change nick name a member
	- chrole:				|	change role a member
	- deafen:				|	set deafen a member
	- kick:					|	kick a member
	- mute:					|	set mute a member
	- move					| 	move member to another voice channel
	- timeout:				|	set timeout a member
	- undeafen:				|	remove deafen a member
	- unmute:				|	remove mute a member
	- untimeout:				|	remove timeout a member
  1. Music:
	- join:					|	join your current voice channel
	- leave:				|   	leave current voice channel
	- nplay:				|	see what track is playing
	- pause:				|	Pause playing
	- play:					|	play an url, find and play from a query
	- queue:				|	see current queue
	- resume:				|	resume playing
	- setloop:				|	set repeated mode for your queue
	- shuffle:				|	shuffle current queue
	- skip:					|	skip current track to next track
	- stop:					|	stop playing and leave voice channel
  1. Ultility:
	- ping:					|	get latency of your bot and API
	- status:				|	get bot's status
	- chat:					|	Ask Bing AI or Google Bard

Usage:

  1. Create config.json
{
  "name": "", (You can use that for your help command)
  "prefix": "Your-prefix", (Only use if you want to use prefix command)

  "token": "Your-Bot-Token",
  "clientId": "Your-Bot-ClientId",

  "__Secure_1PSID": "Your-cookie-__Secure-1PSID",
  "__Secure_1PSIDTS": "Your-cookie-__Secure-1PSIDTS",

  "cookie_U": "Your-cookie-_U",

  "YOUTUBE_API_KEY": "Your-Youtube-API-key"
}
  1. Run
  node test/index.js

How to get token and clientID:

  1. Token

Go to https://discord.com/developers/applications/

Chose your discord bot

Chose Bot

Chose Reset Token and follow the directions, then copy token

Go to config.py

Paste your Token to variable named token

  1. CLientID

Go to https://discord.com/developers/applications/

Chose your discord bot

Copy application ID value

Go to config.py

Paste your Token to variable named clientID

How to get cookies for ai reponse:

  1. Bing AI

Go to https://bing.com/chat

Run your cookies extension

Copy value of cookies named _U

Go to config.json

Paste the cookies to cookie_U

  1. Google Bard

Go to https://bard.google.com/

Run your cookies extension

Copy values of cookies named __Secure-1PSID and __Secure-1PSIDTS

Go to config.json

Paste your cookies value to __Secure_1PSID and __Secure_1PSIDTS

Get FFMPEG:

Go to https://ffmpeg.org/download.html

Download latest version for your OS system

Make sure that ffmpeg can run in your terminal or cmd. If you use Windows, you should add to Your environment variables

Note:

Before running your bot, please update Bing AI cookies and Google Bard cookies if you don't want to have some error when running:>

Contributors

This project exists thanks to all the people who contribute.