Skip to content

Instantly share code, notes, and snippets.

@AllGistsEqual
Created January 25, 2021 21:29
Show Gist options
  • Save AllGistsEqual/265c7bf9eca97f4ac3bdbc932635969f to your computer and use it in GitHub Desktop.
Save AllGistsEqual/265c7bf9eca97f4ac3bdbc932635969f to your computer and use it in GitHub Desktop.
// File: src/index.js line 7 ff
const { prefix, name } = config // add the name again
// Config
const configSchema = {
name,
defaultColors: {
success: '#41b95f',
neutral: '#287db4',
warning: '#ff7100',
error: '#c63737',
},
}
// Define the bot
const bot = {
client: new discord.Client(),
log: console.log, // eslint-disable-line no-console
commands: new discord.Collection(),
config: configSchema, // add the new config to our bot object
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment