Commit 087d5471 authored by TJ Horner's avatar TJ Horner

ah

parent 7a736b47
var config
try {
config = require('./config.json')
} catch(e) {
config = process.env
}
module.exports = config
\ No newline at end of file
const config = require('./config.js')
const mongoose = require('mongoose')
mongoose.connect(process.env.DB_URL || "mongodb://db")
mongoose.connect(config.DB_URL || "mongodb://db")
const User = mongoose.model("User", {
telegramId: {
......
var config
try {
config = require('./config.json')
} catch(e) {
config = process.env
}
const config = require('./config.js')
const { User } = require('./db')
const Telegram = require('telegraf')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment