New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

discord-bot-status

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-bot-status

A package that automatically displays bot status (online/offline, ping) in a specified Discord channel with real-time updates.

  • 1.2.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-88.89%
Maintainers
0
Weekly downloads
 
Created
Source

Discord Bot Status

discord-bot-status is a Node.js package that automatically displays the real-time status (online, offline, idle, DND) and ping of a Discord bot in a specified channel.

Installation

Install the package with npm:

npm install discord-bot-status

Usage

Create a new index.js file

const { Client, Intents } = require('discord.js');
const BotStatus = require('discord-bot-status');

const client = new Client({
    intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES]
});

const CHANNEL_ID = 'YOUR_CHANNEL_ID';  // Replace with the ID of the channel where you want the status displayed

client.once('ready', () => {
    const botStatus = new BotStatus(client, CHANNEL_ID);
    botStatus.startStatusUpdates();
});

client.login(process.env.BOT_TOKEN);  // Securely pass the token through an environment variable

FAQs

Package last updated on 14 Nov 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc