To this work 24/7 and save your energy, I recommend you buy a VPS.
- NodeJS
- MySQL (Cloud or Local)
- PM2 (Opcional, but i recommend)
MySQL
Create a database and then create table "receveid". Code below.
CREATE TABLE `received` (
`msg_id` INT(11) NOT NULL AUTO_INCREMENT,
`steamID3` VARCHAR(255) NOT NULL COLLATE 'utf8_general_ci',
`steamID64` VARCHAR(255) NOT NULL COLLATE 'utf8_general_ci',
`personaname` VARCHAR(255) NOT NULL COLLATE 'utf8_general_ci',
`avatar` TEXT NOT NULL COLLATE 'utf8_general_ci',
`message` TEXT NOT NULL COLLATE 'utf8_general_ci',
`date` TIMESTAMP NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`msg_id`) USING BTREE
)
Adding Steam Account and Database Connection
- Open SteamLogger.js with some text editor.
- Edit value of const inicitalizing with steam_ and db_ (Line 15 - 24)
- After that, you can launch SteamLogger. Process below.
$ node SteamLogger.js