File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const client = new Client({
3131
3232const { loadEvents } = require ( './Handlers/eventHandler.js' ) ;
3333
34- client . config = require ( '../../config/bot .json' ) ;
34+ client . config = require ( '../../config/static .json' ) ;
3535client . events = new Collection ( ) ;
3636client . commands = new Collection ( ) ;
3737client . subCommands = new Collection ( ) ;
@@ -48,7 +48,7 @@ require('./Handlers/crashHandler.js')(client);
4848// });
4949
5050client
51- . login ( client . config . Token )
51+ . login ( client . config [ 'BOT-TOKEN' ] )
5252 . then ( ( ) => {
5353 log (
5454 chalk . bgMagentaBright . bold ( ' CLIENT ' ) ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ module.exports = {
77 * @param {import("express").Request } req
88 * @param {import("express").Response } res
99 * @param {import('../../../../../config/web.json') } web
10- * @param {import('../../../../../config/bot .json') } bot
10+ * @param {import('../../../../../config/static .json') } bot
1111 */
1212 async run ( req , res , web , bot ) {
1313 const { code, state } = req . query ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module.exports = {
66 * @param {import("express").Request } req
77 * @param {import("express").Response } res
88 * @param {import('../../../../config/web.json') } web
9- * @param {import('../../../../config/bot .json') } bot
9+ * @param {import('../../../../config/static .json') } bot
1010 */
1111 run ( req , res , web , bot ) {
1212 if ( req . signedCookies . state ) res . clearCookie ( 'stateParam' ) ;
You can’t perform that action at this time.
0 commit comments