2020-04-03 00:35:54 +00:00
|
|
|
const config = {
|
|
|
|
// Discord tokens
|
|
|
|
token: '',
|
|
|
|
devtoken: '',
|
|
|
|
|
2020-04-08 19:47:46 +00:00
|
|
|
// Bot name
|
|
|
|
botName: '',
|
|
|
|
|
2020-04-22 16:04:44 +00:00
|
|
|
// Auto-update from git (WIP)
|
|
|
|
autoUpdate: {
|
|
|
|
enabled: false, // enable auto-update
|
|
|
|
branch: 'next', // git branch
|
|
|
|
autoFetch: false, // check if an update is available and automatically restart and update
|
2020-04-24 19:06:17 +00:00
|
|
|
fetchInterval: 60000 // auto-fetch interval in milliseconds
|
2020-04-22 16:04:44 +00:00
|
|
|
},
|
|
|
|
|
2020-04-03 00:35:54 +00:00
|
|
|
// API keys that are required for some features/commands
|
|
|
|
keys: {
|
|
|
|
dbl: '', // top.gg key
|
2020-04-12 09:28:31 +00:00
|
|
|
sentry: '' // sentry.io dsn
|
2020-04-03 00:35:54 +00:00
|
|
|
},
|
|
|
|
|
2020-04-19 17:17:37 +00:00
|
|
|
// Configurable API endpoints
|
|
|
|
endpoints: {
|
2020-04-20 09:19:32 +00:00
|
|
|
invidious: 'https://invidious.snopyta.org/api/'
|
2020-04-19 17:17:37 +00:00
|
|
|
},
|
|
|
|
|
2020-04-03 00:35:54 +00:00
|
|
|
// Users added to this embed get access to developer-level commands
|
|
|
|
devs: [''],
|
|
|
|
|
|
|
|
// ID for the support server and the various channels Woomy logs to (leave blank if not used)
|
|
|
|
support: {
|
|
|
|
id: '',
|
|
|
|
logs: '',
|
|
|
|
startupLogs: '',
|
|
|
|
serverLogs: ''
|
|
|
|
},
|
|
|
|
|
|
|
|
// URL of MongoDB database
|
|
|
|
mongoDB: 'mongodb://localhost:27017/woomy',
|
|
|
|
|
2020-04-06 05:54:09 +00:00
|
|
|
// Default prefix Woomy uses
|
|
|
|
defaultPrefix: '~',
|
2020-04-03 00:35:54 +00:00
|
|
|
|
|
|
|
// Emojis used by Woomy
|
|
|
|
emojis: {
|
|
|
|
success: '',
|
|
|
|
error: '',
|
|
|
|
denied: '',
|
|
|
|
search: '',
|
|
|
|
crown: '',
|
|
|
|
boost: '',
|
|
|
|
bot: '',
|
|
|
|
status: {
|
|
|
|
online: '',
|
|
|
|
idle: '',
|
|
|
|
dnd: '',
|
|
|
|
offline: ''
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
// Permission levels
|
|
|
|
permLevels: [
|
|
|
|
{
|
|
|
|
level: 0,
|
|
|
|
name: 'User',
|
|
|
|
check: () => true
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
level: 1,
|
|
|
|
name: 'Moderator',
|
|
|
|
check: (message) => {
|
|
|
|
try {
|
|
|
|
if (message.member.roles.cache.has(message.settings.modRole)) return true
|
|
|
|
} catch (e) {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
level: 2,
|
|
|
|
name: 'Administrator',
|
|
|
|
check: (message) => {
|
|
|
|
try {
|
|
|
|
if (message.member.roles.cache.has(message.settings.adminRole) || message.member.permissions.has('ADMINISTRATOR')) return true
|
|
|
|
} catch (e) {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
level: 3,
|
|
|
|
name: 'Server Owner',
|
|
|
|
|
|
|
|
check: (message) => message.channel.type === 'text' ? (message.guild.ownerID === message.author.id) : false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2020-04-03 06:26:16 +00:00
|
|
|
module.exports = config
|