Update core naming to make a little more sense
This commit is contained in:
parent
2c538885c6
commit
c1750e0842
|
@ -1,6 +1,6 @@
|
||||||
const { promisify } = require("util");
|
const { promisify } = require("util");
|
||||||
const Config = require("../config.json");
|
const Config = require("../config.json");
|
||||||
const Core = require("../../discord-bot-core");
|
const Core = require("../../core");
|
||||||
const FeedData = require("../models/feed-data.js");
|
const FeedData = require("../models/feed-data.js");
|
||||||
const GetUrls = require("get-urls");
|
const GetUrls = require("get-urls");
|
||||||
const ShortID = require("shortid");
|
const ShortID = require("shortid");
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const Core = require("../../discord-bot-core");
|
const Core = require("../../core");
|
||||||
|
|
||||||
module.exports = new Core.Command({
|
module.exports = new Core.Command({
|
||||||
name: "remove-feed",
|
name: "remove-feed",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const Core = require("../../discord-bot-core");
|
const Core = require("../../core");
|
||||||
const Config = require("../config.json");
|
const Config = require("../config.json");
|
||||||
|
|
||||||
module.exports = new Core.Command({
|
module.exports = new Core.Command({
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const Core = require("../discord-bot-core");
|
const Core = require("../core");
|
||||||
const GetUrls = require("get-urls");
|
const GetUrls = require("get-urls");
|
||||||
const GuildData = require("./models/guild-data.js");
|
const GuildData = require("./models/guild-data.js");
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
|
|
@ -3,8 +3,8 @@ const Config = require("../config.json");
|
||||||
|
|
||||||
const { promisify } = require("util");
|
const { promisify } = require("util");
|
||||||
const Camo = require("camo");
|
const Camo = require("camo");
|
||||||
const Core = require("../../discord-bot-core");
|
const Core = require("../../core");
|
||||||
const DiscordUtil = require("../../discord-bot-core").util;
|
const DiscordUtil = require("../../core").util;
|
||||||
const GetUrls = require("get-urls");
|
const GetUrls = require("get-urls");
|
||||||
const Url = require("url");
|
const Url = require("url");
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const Core = require("../../discord-bot-core");
|
const Core = require("../../core");
|
||||||
const FeedData = require("./feed-data.js");
|
const FeedData = require("./feed-data.js");
|
||||||
|
|
||||||
module.exports = class GuildData extends Core.BaseGuildData {
|
module.exports = class GuildData extends Core.BaseGuildData {
|
||||||
|
|
|
@ -16,12 +16,12 @@ A good candidate is my [template project](https://github.com/benji7425/discord-b
|
||||||
## Contributing
|
## 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.
|
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.
|
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 `discord-bot-core` directory back into your 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.
|
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.
|
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).
|
Feel free to contact me if you would like assistance. Find contact details [here](https://benji7425.github.io/contact).
|
|
@ -1,6 +1,6 @@
|
||||||
const RequireAll = require("require-all");
|
const RequireAll = require("require-all");
|
||||||
|
|
||||||
const internalCommands = RequireAll(__dirname + "/core-commands");
|
const internalCommands = RequireAll(__dirname + "/commands");
|
||||||
|
|
||||||
function handleGuildMessage(client, message, commands) {
|
function handleGuildMessage(client, message, commands) {
|
||||||
if (isCommand(message))
|
if (isCommand(message))
|
|
@ -10,16 +10,16 @@
|
||||||
"require-all": "2.2.0",
|
"require-all": "2.2.0",
|
||||||
"simple-file-writer": "2.0.0"
|
"simple-file-writer": "2.0.0"
|
||||||
},
|
},
|
||||||
"name": "discord-bot-core",
|
"name": "core",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/benji7425/discord-bot-core.git"
|
"url": "git+https://github.com/benji7425/core.git"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"bugs": {
|
"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"
|
"description": "Core code shared amongst my Discord bots"
|
||||||
}
|
}
|
|
@ -2,7 +2,7 @@
|
||||||
"version": "3.5.0-b3",
|
"version": "3.5.0-b3",
|
||||||
"main": "app/index.js",
|
"main": "app/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "cd ./discord-bot-core && npm install",
|
"postinstall": "cd ./core && npm install",
|
||||||
"start": "node ./app/index.js --name=rss-feed"
|
"start": "node ./app/index.js --name=rss-feed"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in a new issue