totallymike / ircnode

Extensible IRC bot written with node.js
https://github.com/totallymike/ircnode/wiki
MIT License
4 stars 2 forks source link

A version system #18

Closed sigv closed 12 years ago

sigv commented 12 years ago

There should exist a version system which would possibly use commits as versions. The !version or !info command would be integrated into the core and would return small information about the bot and the current version it is running on.

totallymike commented 12 years ago

This can be tied easily into package.json.

sigv commented 12 years ago

I want it to also use the commit number. The format could be #.#.# (commit). What do you think?

sigv commented 12 years ago

Current implementation is in version_cmd branch. When the user enters !version, IRC Node #.#.# is output. If for any reason the version couldn't be determined (most likely because the npm package.json file could not be found), the message output is IRC Node (unknown version).

sigv commented 12 years ago

Closing as merged into master. This is included in the core and prefers to respond using the commit number, if it looks like a git repo.