Encore un micro fix
This commit is contained in:
5
app.js
5
app.js
@@ -1,7 +1,7 @@
|
|||||||
// PACKAGES
|
// PACKAGES
|
||||||
const WebSocketClient = require('websocket').client
|
const WebSocketClient = require('websocket').client
|
||||||
const express = require('express')
|
const express = require('express')
|
||||||
const getUserID = require('./utils/getUserID')
|
|
||||||
require('dotenv').config()
|
require('dotenv').config()
|
||||||
require('require-all')(__dirname + '/utils/')
|
require('require-all')(__dirname + '/utils/')
|
||||||
|
|
||||||
@@ -40,7 +40,6 @@ app.get('/twitch/oauth/:type', async (req, res) => {
|
|||||||
let url = await oauthGen(client_id, redirect_uri + type, type === 'user' ? user_scope : type === 'channel' ? channel_scope : [])
|
let url = await oauthGen(client_id, redirect_uri + type, type === 'user' ? user_scope : type === 'channel' ? channel_scope : [])
|
||||||
return res.redirect(url)
|
return res.redirect(url)
|
||||||
})
|
})
|
||||||
|
|
||||||
app.get('/twitch/oauth/login/:type', async (req, res) => {
|
app.get('/twitch/oauth/login/:type', async (req, res) => {
|
||||||
console.log(`${new Date().toLocaleString()} - ${req.method} ${req._parsedUrl.pathname} from ${req.socket.remoteAddress}`)
|
console.log(`${new Date().toLocaleString()} - ${req.method} ${req._parsedUrl.pathname} from ${req.socket.remoteAddress}`)
|
||||||
let type = req.params.type
|
let type = req.params.type
|
||||||
@@ -83,7 +82,7 @@ app.get('/twitch/panel/:file', async (req, res) => {
|
|||||||
else return res.sendFile(__dirname + '/public/panel/' + file)
|
else return res.sendFile(__dirname + '/public/panel/' + file)
|
||||||
})
|
})
|
||||||
|
|
||||||
app.listen(port, () => { console.log(`[SYS] Express listening at port ${port} !`) })
|
app.listen(port, () => { console.log(`[SYS] Express listening on port ${port} !`) })
|
||||||
|
|
||||||
|
|
||||||
// CHATBOT
|
// CHATBOT
|
||||||
|
|||||||
Reference in New Issue
Block a user