mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-14 21:26:54 +00:00
Quick fix for config parts
This commit is contained in:
@@ -7,7 +7,7 @@ const BASE_LVL_XP = 20;
|
||||
|
||||
// const { token } = require('./config.json');
|
||||
//Heroku part
|
||||
// const { token } = process.env.token;
|
||||
const { token } = process.env.token;
|
||||
|
||||
const bot = new Client({
|
||||
intents: [
|
||||
@@ -22,7 +22,7 @@ const prefix = '/';
|
||||
|
||||
|
||||
//MongoDB integration
|
||||
const mongouri = "mongodb+srv://discordbot:Nivi8395@bot.t5ghb.mongodb.net/myFirstDatabase?retryWrites=true";//process.env.MONGODB_URI;
|
||||
const mongouri = process.env.MONGODB_URI;
|
||||
const GuildModel = require('./commands/inventory/models/guild');
|
||||
const { connect } = require('mongoose');
|
||||
|
||||
@@ -150,7 +150,6 @@ bot.on('messageCreate', (message) => {
|
||||
//Look into integrating MySQL into SelmerBot instead of SQLite
|
||||
|
||||
//Last Line(s)
|
||||
const { token } = require('./config.json');
|
||||
bot.login(token);
|
||||
|
||||
// bot.login(process.env.token);
|
||||
Reference in New Issue
Block a user