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

twitch-sm4shbot

v0.1.3

Published

A Twitch bot for Smash 4 streamers.

Downloads

9

Readme

twitch-sm4shbot

Build Status npm version Dependencies

A Twitch bot for Smash 4 streamers.

Feedback & Support

If you need help adding Sm4shbot to your stream or want to submit feedback or a bug report, here is how you can reach us:

Contributing

Sm4shbot is an open source project! If you know how to code, feel free to make a PR or create an issue for any ideas/code bugs.

Setup

Simply make twitch-sm4shbot a moderator of your stream. Then login with your twitch account to Sm4shBot.com which provides a graphical dashboard to manage your stream.

Chat Commands

Here's how to interact with the bot inside your chat.

Protip: Many commands have Aliases that might be quicker to type or easier to remember.

Keyword

The kewyord to trigger bot commands is !sm4sh. E.g.:

<zssrocks> !sm4sh on
<twitch_sm4shbot> @zssrocks, Sm4shBot has been activated. Happy sm4shing!

Aliases: !smash

Challenger (Public)

The following commands can be used by anyone in the chat.

enter <NNID> <In-Game Name>

Enters you into the challenger list.

<rosaluma> !sm4sh enter popOff22 Danny

Aliases: join, register

leave

Drops you from the challenger list.

<rosaluma> !sm4sh leave

Aliases: lv, drop

list

Shows the list of challengers. This command only works once every 30 seconds to prevent spamming.

<rosaluma> !sm4sh list

Aliases: ls

Admin

These commands can only be run by trusted admins. The streamer is always a trusted admin.

on

Activates Sm4shbot in your chat. No commands will work until activation.

<zssrocks> !sm4sh on

Aliases: activate

off

Deactivates Sm4shbot in your chat. No commands afterward will work.

<zssrocks> !sm4sh off

Aliases: deactivate

open [subscriber only]

Opens the challenger list for entries.

<zssrocks> !sm4sh open

If you add true, subs, or subscribers, the list will only be open for subscribers.

<zssrocks> !sm4sh open true
<zssrocks> !sm4sh open subs
<zssrocks> !sm4sh open subscribers

To switch back to both subs and viewers, just send open with nothing else.

<zssrocks> !sm4sh open

close

Closes the challenger list for entries. Admins are still able to manually add challengers with the add command.

<zssrocks> !sm4sh close

add <Twitch Username> <NNID> <In-Game Name>

Manually adds a challenger to the end of the list. This command can be used even if the list is closed or full.

<zssrocks> !sm4sh add rosaluma popOff22 Danny

remove <Twitch Username>

Manually removes a challenger from the list.

<zssrocks> !sm4sh remove rosaluma

Aliases: rm

next

Shows details about the next challenger. This does not move to the next match.

<zssrocks> !sm4sh next

start

Starts the next match in the list. It also notifies the challenger on-deck to start getting ready.

<zssrocks> !sm4sh start

Aliases: s

win

Registers a game win for the streamer. If the game was a set winner, everyone is notified and the match is ended. To start the next match, you must send the start command.

<zssrocks> !sm4sh win

Aliases: w

loss

Registers a game loss for the streamer. If the game was a set winner, everyone is notified and the match is ended. To start the next match, you must send the start command.

<zssrocks> !sm4sh loss

Aliases: l

forfeit

Register a match forfeit. Does not count as a loss or a win for the streamer. To start the next match, you must send the start command.

<zssrocks> !sm4sh forfeit

Aliases: ff

set <option> <value>

Sets a value for an option. These will not be applied to matches that are currently in progress.

<zssrocks> !sm4sh set firstTo 5

Here's what you can set:

limit <number of challengers>

Sets the max size the challenger list can grow to. Admins are allowed to surpass this limit. The default is 20 challengers.

firstTo <number of games>

Sets the number of games a challenger or the streamer must win to take the set. The default is 3 for viewers and 5 for subs. This will overwrite the first to criteria for both viewers and subs.

Aliases: firstto, first

firstToViewer <number of games>

Sets the number of games a viewer or the streamer must win to take the set. The default is 2 (best of 3).

Aliases: firsttoviewer, firstviewer, firstviewer, fv

firstToSub <number of games>

Sets the number of games a sub or the streamer must win to take the set. The default is 3 (best of 5).

Aliases: firsttosub, firstSub, firstsub, fs

License

Copyright (c) 2015 Alexander Martin

MIT (http://www.opensource.org/licenses/mit-license.php)