From f33efa466054206bdd3e63eb00dfe296973dc99d Mon Sep 17 00:00:00 2001 From: Alee Date: Sat, 31 Mar 2018 21:58:36 -0400 Subject: Moved items.json to the storage folder --- commands/buy.js | 2 +- items.json | 20 -------------------- storage/items.json | 20 ++++++++++++++++++++ 3 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 items.json create mode 100644 storage/items.json diff --git a/commands/buy.js b/commands/buy.js index ad5fe3b..b9b9269 100644 --- a/commands/buy.js +++ b/commands/buy.js @@ -21,7 +21,7 @@ module.exports.run = async (client, message, args) => { const economy = require('discord-eco') const Discord = require('discord.js'); const fs = require('fs') - const items = JSON.parse(fs.readFileSync('./items.json', 'utf8')); + const items = JSON.parse(fs.readFileSync('./storage/items.json', 'utf8')); let categories = []; diff --git a/items.json b/items.json deleted file mode 100644 index 1d57718..0000000 --- a/items.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "Programmer" : { - "name": "Programmer Role", - "price": "100", - "type": "Roles", - "desc": "Buying this gives you the programmer role." - }, - "AleeOS" : { - "name": "AleeOS", - "price": "400", - "type": "OS", - "desc": "Buying this gives you AleeOS." - }, - "theSlate" : { - "name": "theSlate", - "price": "400", - "type": "Tools", - "desc": "Buying this gives you theSlate." - } -} \ No newline at end of file diff --git a/storage/items.json b/storage/items.json new file mode 100644 index 0000000..1d57718 --- /dev/null +++ b/storage/items.json @@ -0,0 +1,20 @@ +{ + "Programmer" : { + "name": "Programmer Role", + "price": "100", + "type": "Roles", + "desc": "Buying this gives you the programmer role." + }, + "AleeOS" : { + "name": "AleeOS", + "price": "400", + "type": "OS", + "desc": "Buying this gives you AleeOS." + }, + "theSlate" : { + "name": "theSlate", + "price": "400", + "type": "Tools", + "desc": "Buying this gives you theSlate." + } +} \ No newline at end of file -- cgit v1.2.3