git subrepo pull (merge) discord-bot-core
subrepo: subdir: "discord-bot-core" merged: "d1f015c" upstream: origin: "git@github.com:benji7425/discord-bot-core.git" branch: "master" commit: "c4f07d0" git-subrepo: version: "0.3.1" origin: "???" commit: "???"
This commit is contained in:
parent
8e03504cd6
commit
cf33b8b14d
|
@ -6,7 +6,7 @@
|
|||
[subrepo]
|
||||
remote = git@github.com:benji7425/discord-bot-core.git
|
||||
branch = master
|
||||
commit = 270d24d2119404ba42364584868a3ed364e87678
|
||||
commit = c4f07d0a8d4585083c3f167c1dce55cbeeda05d2
|
||||
parent = 341964a90ddca9afc684fd9331fc4177b8b68c04
|
||||
method = merge
|
||||
cmdver = 0.3.1
|
||||
|
|
8
discord-bot-core/bootstrapper.js
vendored
8
discord-bot-core/bootstrapper.js
vendored
|
@ -11,7 +11,7 @@ const ParentPackageJSON = require("../package.json"); //used to provide some inf
|
|||
const DiscordUtil = require("./util.js"); //some discordjs helper functions of mine
|
||||
const MessageHandler = require("./message-handler.js");
|
||||
|
||||
function bootstrap(component, guildDataModel, commands) {
|
||||
function bootstrap(token, component, guildDataModel, commands) {
|
||||
process.on("uncaughtException", (err) => {
|
||||
DiscordUtil.dateError("Uncaught exception!", err);
|
||||
});
|
||||
|
@ -29,7 +29,7 @@ function bootstrap(component, guildDataModel, commands) {
|
|||
DiscordUtil.dateError("Bot was disconnected!", eventData.code, eventData.reason);
|
||||
});
|
||||
|
||||
client.login(require("../token.json").token);
|
||||
client.login(token);
|
||||
}
|
||||
|
||||
function onReady(client, component, guildDataModel, commands) {
|
||||
|
@ -69,6 +69,4 @@ function fromJSON(json, guildDataModel) {
|
|||
return json;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
bootstrap
|
||||
};
|
||||
module.exports = bootstrap;
|
|
@ -1,9 +1,7 @@
|
|||
const Config = require("./config.json");
|
||||
|
||||
module.exports = {
|
||||
bootstrap(component, guildDataModel, commands) {
|
||||
require("./bootstrapper.js").bootstrap(component, guildDataModel, commands);
|
||||
},
|
||||
bootstrap: require("./bootstrapper.js"),
|
||||
util: require("./util.js"),
|
||||
details: {
|
||||
website: Config.website,
|
||||
|
|
Loading…
Reference in a new issue