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

monochrome-bot

v3.0.0-alpha.61

Published

A flexible Discord bot core based on Eris

Downloads

218

Readme

Don't use me: monochrome version 2.x.x does not work with node 12.18.x+, and monochrome 3 is in alpha and not intended for use by anyone but me at this point.

Monochrome

A flexible Discord bot core built on Eris. Node v12+ recommended.

Key features:

  • Command framework
  • Server/channel/user settings framework
  • Built in on-disk persistence
  • Zero-effort custom prefixes and command enabling/disabling, configurable by server admins
  • Two-dimensional pagination with lazy-loading and caching
  • Automatic logging of virtually all user interaction with the bot

The best way to get started is to clone the monochrome demo, have a look in its commands directory to see how it works, and then delete the existing commands that you don't need and add your own. This way you do not need to create the correct directory structure from scratch. In addition, a number of the demo commands are useful and you should consider using them in your bot.

For more advanced help and API documentation, see the full documentation.

For a production bot using monochrome, see Kotoba.

Version 2.0.0 contains many breaking changes. Updating from version 1.x.x will break your bot. There is no urgent need to update if you don't need any of the new features. Until you're ready to update, make sure to specify the version you need in your package.json file.

Essential commands

Monochrome doesn't have built-in commands. Instead, essential commands are distributed in the monochrome demo. They are available there instead of being built into the NPM module so that you can easily pick and choose commands and customize them as you please.

The following of the demo commands may be useful to you:

  • about.js - Fill in the information that you want people to know about your bot.
  • blacklist.js - Blacklist bad users and prevent them from being able to use the bot.
  • unblacklist.js - Remove a user from the blacklist.
  • broadcast.js - Send a message as the bot.
  • delete.js - Delete a message.
  • eval.js - Evaluate arbitrary Javascript code.
  • help.js - Show a help command with information about the bot's commands.
  • reload.js - Dynamically reload your commands, message processors, and settings without restarting the bot. Note that for all of your code to get reloaded, you must use require-reload to require your modules, instead of the regular Javascript require function.
  • servers.js - Show a list of all servers that the bot is in.
  • settings.js - Allow users to edit the settings that you specify in your settings definition file, plus command prefixes and command enable/disabled state.
  • shutdown.js - Disconnect from Discord and kill the process.

Help

Feel free to visit my Discord server for support.