1.0.4 • Published 3 years ago

hello-timebot v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Overview

Installation

Hello-Timebot has only one goal, and that is to greet users depending on the time the greet has been initiated. In order to install Hello-Timebot, you'll need NodeJS installed. You can get it completely for free here:

Please note that most Linux/Ubuntu machines have NodeJS pre-installed. To verify that your machine (regardless of its operating system) has NodeJS installed, open any terminal window and enter the following command:

node --version

The terminal should return with the version of NodeJS you are running. However, if the terminal fails to do so, you'll need to install NodeJS. There are many simple and effective tutorials on the internet in case you need help installing NodeJS.

Once you've installed NodeJS or verified that you already have it installed, you'll need to install Hello-Timebot. In order to do this, enter the following command into the terminal:

npm i hello-timebot

Hello-Timebot should install.

Function

In order to use Hello-Timebot, you'll need to have a NodeJS server setup. Once again, there are many effective tutorials on the internet in case you need some help. Assuming you already have setup the server, require Hello-Timebot as a variable, preferably a constant:

const helloTimebot = require('hello-timebot')

Now, simply call the Hello-Timebot greet command:

console.log(helloTimebot.greet())

This command will return with a string, such as 'Good morning', 'Good afternoon', etc. Because of this, this command can be used in many different writing situations, such as when you may need to alert a specific string.

Links

Credits

PS: I am aware of the fact that this package renders totally useless, but this was the first NodeJS package I'd ever published, and I didn't really know too much about it.

1.0.2

3 years ago

1.0.1

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago