kbotify
Version:
kaiheila bot framework
15 lines • 540 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createSession = void 0;
const session_base_1 = require("./session.base");
const session_guild_1 = require("./session.guild");
const createSession = (command, args, msg, bot) => {
if (msg.guildId) {
return new session_guild_1.GuildSession(command, args, msg, bot);
}
else {
return new session_base_1.BaseSession(command, args, msg, bot);
}
};
exports.createSession = createSession;
//# sourceMappingURL=session.create.js.map