Skip to content

Instantly share code, notes, and snippets.

@AllGistsEqual
Created February 15, 2021 12:40
Show Gist options
  • Save AllGistsEqual/7609167ac799b2482bdf4a031eb8e0ae to your computer and use it in GitHub Desktop.
Save AllGistsEqual/7609167ac799b2482bdf4a031eb8e0ae to your computer and use it in GitHub Desktop.
// File: src/index.js
// Config
const configSchema = {
discordToken: { type: 'string', default: 'HERE BE THE TOKEN' },
owner: { type: 'string', default: '' },
name: { type: 'string', default: 'BotAnon' },
defaultGame: { type: 'string', default: '$help for help' },
prefix: { type: 'string', default: '$' },
commandAliases: { type: 'object', default: {} },
defaultColors: {
type: 'object',
default: {
neutral: { type: 'string', default: '#287db4' },
error: { type: 'string', default: '#c63737' },
warning: { type: 'string', default: '#ff7100' },
success: { type: 'string', default: '#41b95f' },
},
},
settings: { type: 'object', default: {} },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment