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

albion-guildbot

v1.0.0-dev

Published

A discord bot that posts interesting events for a guild.

Downloads

55

Readme

Albion Guildbot

A Bot that posts interesting events about a guild to Discord.

Individual Kill

Battle

5v5

Requirements

  • git
  • nodejs

Instructions

The Albion Guildbot can be set up with either environment variables or directly modifying config.js. The bot was developed against a Heroku environment, where environment variables are preferred.

Step 1 - Create a Discord bot

Using the Discord dev console, set up a Discord bot and add it to your server. You will need the bot's token (found on discord dev console) and the channelID of the channel you want it to post to (found by right clicking the channel in Discord after enabling developer mode in Discord settings). Add these settings either to your config.js directly, or set the appropriate env vars in your environment according to config.js.

Step 2 - Configure to your guild

Copy or rename config.js.dist to config.js. Set your alliance and guild name(s) in config.js or the corresponding environment variables. If set by Environment variable, guilds should be set as a comma-separated string. For example, ALBION_GUILDS="TeamCasualty,Team Casualty 2"

Step 3 - Push to your environment or run locally

3a. Environment example: Heroku

Using heroku, you should already have a Heroku project set up (it will need to be paid if you plan to run the bot 24/7). You should have your heroku repository set as a git source (eg git remote add heroku https://your.heroku.repo).

After setting your environment variables in the Heroku dashboard or via the Heroku CLI, the project can be pushed to heroku via git, eg git push heroku master.

If using heroku, make sure to also set the environment variable HEROKU to true. If you don't, heroku will shut down after not being bound to a port for 60 seconds.

3b. Running locally

To run locally, first you'll need to install the dependencies via npm

npm install

And call the start script to run the bot

npm start

Contributing

To contribute, fork this repository and make your changes as a branch of the fork. After the changes are functional and ready to merge back in, submit a Pull Request.

Discord

If I haven't responded to your PR in a while, if you have any questions, want to chat or just want to see the bot in action, you can join my testing server at https://discord.gg/PeypCBv.