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

crowbot

v1.0.5

Published

A Discord bot that returns the current & upcoming Crowfall playtest dates.

Downloads

11

Readme

crowbot 🤖

crowbot is a useful Discord bot that lets you know whether there's a Crowfall (an upcoming fantasy MMORPG) playtest currently running, and what future playtests are scheduled.

Commands:

  • !crowfall playtests - Returns the current & upcoming Crowfall playtest schedule.
  • !crowfall help - Shows the help text.

Feature additions and/or suggestions are welcome. If ArtCraft offer an API for account and/or game data, crowbot will be extended to hook into these.

Use on your Discord channel

Add Crowbot to your Discord server(s)

Crowbot will show up in the members list as a "bot" and will respond commands it is aware of. You can add it to multiple servers (as long as you are an admin) and change which channels it is a member of via the Discord UI.

Demo Time

crowbot in action

Optional: Deploy to Heroku or Zeit Now

You can run this yourself by deploying to Heroku, Now or your own server. You will need:

  • At least a cursory knowledge of yarn (or npm), git and TypeScript.
  • To create a bot application on Discord & obtain a client ID and bot token.
  • A Google API key from their developer console (to make requests to the Calendar API)

Heroku

Deploying to Heroku is easy. If you haven't done it before, you should run through their Node.js guide, which will familiarize you with their platform.

Beyond that: clone this repository, modify the BotConfig in index.ts to rename/change any configuration you want, and then add your keys as environmental variables.

$ heroku login
$ heroku apps:create $uniquename
$ heroku config:set DISCORD_BOT_TOKEN=yours
$ heroku config:set DISCORD_CLIENT_ID=yours
$ heroku config:set GOOGLE_API_KEY=yours
$ git push heroku

Use heroku logs if you need to inspect the running logs for the application.

Privacy

This bot, like many others, works by reading message events from your preferred channel(s) by subscribing to an event stream from Discord. This does mean that the bot can read all messages in the channels it has been enabled for.

Although communication is only over HTTPS (TLS) and/or secure WebSockets (WSS) and the bot does not log messages (it does log commands), there is always an element of trust (as with any bot!). If you don't trust this bot, you are welcome to deploy your own version of it or fork it and modify the source (noting the associated LICENSE file).

License

3-Clause-BSD licensed. See the LICENSE file for further details.