From 95d84cfaef958134a173b2f5f2874e5a884f7d44 Mon Sep 17 00:00:00 2001 From: mudkipscience Date: Mon, 6 Apr 2020 15:54:09 +1000 Subject: [PATCH] random --- README.md | 3 +-- changelog.txt | 7 +++++++ commandTemplate.js | 19 +++++++++++++++++++ configTemplate.js | 9 ++------- 4 files changed, 29 insertions(+), 9 deletions(-) create mode 100644 changelog.txt create mode 100644 commandTemplate.js diff --git a/README.md b/README.md index a13b776..8b09475 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ # woomy-next Rewrite of Woomy's codebase, because I'm getting really sick of working on shitty two year-old code. If you aren't a developer, please switch back to the master branch! # notes for devs -- config.js no longer stores tokens, for that you will need to use a .env file. -- please use the StandardJS linter when writing code for Woomy. \ No newline at end of file +- please install ESLint and use the included .eslintrc.js file to have properly formatted code when you're writing Woomy \ No newline at end of file diff --git a/changelog.txt b/changelog.txt new file mode 100644 index 0000000..865f355 --- /dev/null +++ b/changelog.txt @@ -0,0 +1,7 @@ +Woomy 2.0: +- A lot of Woomy's code has been rewritten +- Woomy now uses MongoDB for settings storage instead of enmap +- Logger now logs which file a log came from +- Functions file has been separated into multiple helpers +- Added systemNotice feature, stops Woomy from outputting permission errors and stuff +- New ping command \ No newline at end of file diff --git a/commandTemplate.js b/commandTemplate.js new file mode 100644 index 0000000..31f6a60 --- /dev/null +++ b/commandTemplate.js @@ -0,0 +1,19 @@ +exports.conf = { + enabled: true, + guildOnly: false, + aliases: [], + permLevel: 'User', + requiredPerms: [], + cooldown: 2000 // miliseconds +} + +exports.help = { + name: '', + category: '', + description: '', + usage: '' +} + +exports.run = async (client, message, args, level, data) => { + // epic code goes here +} diff --git a/configTemplate.js b/configTemplate.js index e8b940d..bddc250 100644 --- a/configTemplate.js +++ b/configTemplate.js @@ -23,13 +23,8 @@ const config = { // URL of MongoDB database mongoDB: 'mongodb://localhost:27017/woomy', - // Default settings for guilds - defaultGuildSettings: { - prefix: '~', - systemNotice: true, - modRole: 'Moderator', - adminRole: 'Administrator' - }, + // Default prefix Woomy uses + defaultPrefix: '~', // Emojis used by Woomy emojis: {