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

d-bot

v1.1.2

Published

A quirky Discord bot made for single, small, private servers

Downloads

28

Readme

D-Bot

A quirky Discord bot made for single, small, private servers

Requires node 8.2.1 or newer

  1. Install: npm install d-bot
  2. Set up: config.json
  3. Run: start bot.bat
  4. ???: profit

About

This bot was created for a small server I share with my friends. Running it on multiple servers may have unintended side-effects. You probably don't want to install this bot anyway.

But, I do think it's a halfway decent framework for a bot, and there are some interesting addons. Take a look at the code!

This bot logs messages, and has several commands that interact with those logs. Currently, this will not work for any messages sent before installing D-Bot, or any sent while D-Bot is offline. I plan to implement history crawling at some point.

Config

Rename config_example.json to config.json

The config file is mostly optional things. You can remove any optional property you don't need.

Required

  • token string - Your bot's token. A long string of letters and numbers.
  • owner string - Your Discord ID. Not your user tag, but your actual numeric ID
  • prefixes array - Array of strings to prefix your commands with. You can have just one, or many, but they can only be one character each.

Optional

  • adminRole string - Role ID for users permitted to perform admin-like commands such as editing channels.
  • privateChannels array - Array of channel ID strings that are ignored when commands such as find or last are used outside of these channels. When such a command is used inside a private channel, only messages from within that channel are searched.
  • noLogServers array - Array of server ID strings that D-Bot will not log messages for
  • noLogChannels array - Array of channel ID strings that D-Bot will not log messages for
  • allowCustomColors boolean - If true, users can set their username color with the color command
  • minecraft object - Contains IP and port for a Minecraft server to check the status of
  • mumble object - If you have a CommandChannel Mumble server, input your e-mail and API key to check the status
  • starbound object - If you have a Starbound server with Multiplay, paste in your server status image URL
  • 7d object - If you have a 7 Days to Die server, input the server IP and telnet info (see serverconfig.xml)
  • userAliases object - Lists of alternate names that users go by, for username lookups within the bot and for getting the username of a user no longer in the server. Property name should be the user ID, value should be an array of strings.
  • timezones object - Time zones used with the time command. Property names should be IANA time zone names, and the values are aliases shown by the command.

And Also

Eternal thanks and respect to Izy521 for his awesome library, discord.io, and all the assistance he has provided that helped me get started in bot coding. D-Bot has since moved onto the Eris library by Abalabahaha, which is also awesome.

Shout-outs to F&A!