41 lines
574 B
Markdown
41 lines
574 B
Markdown
# CuandoLaTesisBot
|
|
|
|
## Requirements
|
|
|
|
```
|
|
npm install
|
|
```
|
|
|
|
Remember to create the credentials file
|
|
|
|
```json
|
|
{
|
|
"token": "",
|
|
"postgres": {
|
|
"user": "",
|
|
"host": "",
|
|
"database": "when-the-thesis",
|
|
"password": "",
|
|
"port": 5432
|
|
}
|
|
}
|
|
```
|
|
|
|
Also you need to create a the when-the-thesis database and also the table with:
|
|
|
|
```
|
|
CREATE TABLE USERS(
|
|
ID SERIAL PRIMARY KEY,
|
|
USER_ID INT NOT NULL,
|
|
USER_NAME TEXT,
|
|
FT_DATE TEXT,
|
|
RT_DATE TEXT,
|
|
DT_DATE TEXT
|
|
);
|
|
```
|
|
|
|
### Deployment
|
|
|
|
```
|
|
node bot.js
|
|
``` |