Update core naming to make a little more sense

This commit is contained in:
benji7425 2018-01-27 17:32:09 +00:00
parent 78960db384
commit 5e0250731c
25 changed files with 16 additions and 16 deletions

View File

@ -1,6 +1,6 @@
const { promisify } = require("util");
const Config = require("../config.json");
const Core = require("../../discord-bot-core");
const Core = require("../../core");
const FeedData = require("../models/feed-data.js");
const GetUrls = require("get-urls");
const ShortID = require("shortid");

View File

@ -1,4 +1,4 @@
const Core = require("../../discord-bot-core");
const Core = require("../../core");
module.exports = new Core.Command({
name: "remove-feed",

View File

@ -1,4 +1,4 @@
const Core = require("../../discord-bot-core");
const Core = require("../../core");
const Config = require("../config.json");
module.exports = new Core.Command({

View File

@ -1,4 +1,4 @@
const Core = require("../discord-bot-core");
const Core = require("../core");
const GetUrls = require("get-urls");
const GuildData = require("./models/guild-data.js");
// @ts-ignore

View File

@ -3,8 +3,8 @@ const Config = require("../config.json");
const { promisify } = require("util");
const Camo = require("camo");
const Core = require("../../discord-bot-core");
const DiscordUtil = require("../../discord-bot-core").util;
const Core = require("../../core");
const DiscordUtil = require("../../core").util;
const GetUrls = require("get-urls");
const Url = require("url");

View File

@ -1,4 +1,4 @@
const Core = require("../../discord-bot-core");
const Core = require("../../core");
const FeedData = require("./feed-data.js");
module.exports = class GuildData extends Core.BaseGuildData {

View File

@ -16,12 +16,12 @@ A good candidate is my [template project](https://github.com/benji7425/discord-b
## Contributing
The easiest way to get setup would be a fork of this repo, and the fork of a bot to use as a development context.
I suggest using my [template project](https://github.com/benji7425/discord-bot-template) as a development context, along with [git subrepo](https://github.com/ingydotnet/git-subrepo) to push back to your discord-bot-core fork.
If you are uncomfortable using git subrepo, you could just as easily copy/paste your child `discord-bot-core` directory back into your fork.
I suggest using my [template project](https://github.com/benji7425/discord-bot-template) as a development context, along with [git subrepo](https://github.com/ingydotnet/git-subrepo) to push back to your core fork.
If you are uncomfortable using git subrepo, you could just as easily copy/paste your child `core` directory back into your fork.
My [template project](https://github.com/benji7425/discord-bot-template) has more in-depth details about how to setup and test.
If you have a completed change, please submit a pull request from your `discord-bot-core` fork back to this repo.
If you have a completed change, please submit a pull request from your `core` fork back to this repo.
Whilst this is very easy to use once you know how, I appreciate this might be a little tricky if you aren't familiar with developing in this way.
Feel free to contact me if you would like assistance. Find contact details [here](https://benji7425.github.io/contact).

View File

@ -1,6 +1,6 @@
const RequireAll = require("require-all");
const internalCommands = RequireAll(__dirname + "/core-commands");
const internalCommands = RequireAll(__dirname + "/commands");
function handleGuildMessage(client, message, commands) {
if (isCommand(message))

View File

@ -10,16 +10,16 @@
"require-all": "2.2.0",
"simple-file-writer": "2.0.0"
},
"name": "discord-bot-core",
"name": "core",
"repository": {
"type": "git",
"url": "git+https://github.com/benji7425/discord-bot-core.git"
"url": "git+https://github.com/benji7425/core.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/benji7425/discord-bot-core/issues"
"url": "https://github.com/benji7425/core/issues"
},
"homepage": "https://github.com/benji7425/discord-bot-core#readme",
"homepage": "https://github.com/benji7425/core#readme",
"description": "Core code shared amongst my Discord bots"
}

View File

@ -2,7 +2,7 @@
"version": "3.5.0-b3",
"main": "app/index.js",
"scripts": {
"postinstall": "cd ./discord-bot-core && npm install",
"postinstall": "cd ./core && npm install",
"start": "node ./app/index.js --name=rss-feed"
},
"dependencies": {