Skip to content

Commit

Permalink
port with express
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Jan 27, 2024
1 parent 4b996bc commit 46fcaaf
Show file tree
Hide file tree
Showing 4 changed files with 452 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main_twitch-mz-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
envkey_TWITCH_USERNAME: ${{ secrets.TWITCH_USERNAME }}
envkey_TWITCH_PASSWORD: ${{ secrets.TWITCH_PASSWORD }}
envkey_TWITCH_CHANNELS: ${{ secrets.TWITCH_CHANNELS }}
envkey_PORT: 3000

- name: Set up Node.js version
uses: actions/setup-node@v4
Expand Down
7 changes: 7 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@ const messenger = new Messenger()
messenger.listen()
.then(() => {
console.log('Connected')
const express = require('express')

const app = express();
var listener = app.listen(process.env.PORT, function() {
console.log('Listening on port ', + listener.address().port)
app.get('/', (req, res) => res.send('Hello World!'))
});
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"license": "MIT",
"dependencies": {
"dotenv": "^16.4.1",
"express": "^4.18.2",
"tmi.js": "^1.8.5"
},
"scripts": {
Expand Down
Loading

0 comments on commit 46fcaaf

Please sign in to comment.