Skip to content

Commit

Permalink
remove: mongo (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDams authored Apr 22, 2023
1 parent db908f7 commit 3e36cfc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ const fs = require('fs')
const AntiSpam = require('./templates/antispam')
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildMessages] })
const { updateRoles } = require('./functions/roles')
const mongo = require('./database/mongo')

require('dotenv').config()
mongo().then(() => { console.info('🧱 Connected to mongo') }).catch(console.error)

client.antispam = new AntiSpam()

Expand All @@ -18,4 +16,4 @@ fs.readdirSync('./events').filter(file => file.endsWith('.js')).forEach(async (f
// Start the bot
client.login(process.env.TOKEN)

setInterval(() => { updateRoles(client) }, 3600000)
setInterval(() => { updateRoles(client) }, 3600000)

0 comments on commit 3e36cfc

Please sign in to comment.