Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Version 3.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Paultje52 committed Feb 22, 2019
1 parent f7d8f4d commit 5cdd3ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bananenbase",
"version": "3.1.2",
"version": "3.1.3",
"description": "Thé discord.js AND express framework!",
"main": "src/index.js",
"dependencies": {
Expand Down
5 changes: 5 additions & 0 deletions src/bot/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ module.exports = async (client, message) => {
this.cmd = this.client.commands.get(this.command) || this.client.subCommands.get(this.command);
if (!this.cmd) return;

// Checking if the channel is active with something
let activeChannels = await this.client.db.get("activeChannels");
if (!activeChannels) activeChannels = [];
if (activeChannels.includes(message.channel.id)) return message.react("❌");

// Checking command permissions
this.cmdPermission = await this.cmd.check(this.client, message, this.args, true);
if (!this.cmdPermission) return;
Expand Down

0 comments on commit 5cdd3ec

Please sign in to comment.