markokajzer / discord-soundbot

A Soundboard Bot for Discord
MIT License
191 stars 69 forks source link

Publish package on NPM #26

Closed lesander closed 6 years ago

lesander commented 6 years ago

Hi there!

Great work with the soundbot, thank you.

While trying to upgrade from 0.8.0 to 1.0.0 I noticed that the repository isn't hosted on the npmjs.com registry. The package.json states dicord_soundbot as the name of the package, however it does not exist at https://www.npmjs.com/package/dicord_soundbot (or at any other link for that matter).

For more information on publishing a package on npmjs.com see this article.

markokajzer commented 6 years ago

Hey!

Thank you so much for using the bot, and thanks for the encouraging words. Means a lot.

As you can see from the roadmap, I am currently exploring how I can publish the bot to npm as I am really new to it. The problem I see here, is that currently the bot reads the config out of ./config folder.

In the meantime, if you want to upgrade just run git pull. Since you want to upgrade to 1.0.0 let me tell you that the db.json that saves how many times each sound has been played cannot be used with 1.0.0. If you want to use your old database you need to rename counts to sounds and add "tags": [] to each of the existing entries. Sorry for the inconvenience! EDIT: This script will do it for you!

May I ask how you knew that 1.0 was released? Did you randomly check the repo again?

markokajzer commented 6 years ago

Happy to announce that this was finally implemented! 🎉

You can now find the package on npm.