Official Kotersquad discord bot, written in Node.
Commited on by Robin Boers.
diff --git a/commands/boobs.js b/commands/boobs.js
index 57ae308..697724e 100644
--- a/commands/boobs.js
+++ b/commands/boobs.js
@@ -3,6 +3,8 @@ module.exports = {
description: "nsfw content",
execute(message, args){
if (message.channel.nsfw) {
+
+ const { prefix, token, nswfAllowed, coinEmoji, AdminRole, redditToken } = require('../config.json');
var snoowrap = require('snoowrap');
const r = new snoowrap({
diff --git a/commands/clear.js b/commands/clear.js
index ee34678..ae6de99 100644
--- a/commands/clear.js
+++ b/commands/clear.js
@@ -5,7 +5,7 @@ module.exports = {
description: "clears bot channel",
execute(message, args){
- const { prefix, token, nswfAllowed, coinEmoji, AdminRole } = require('../config.json');
+ const { prefix, token, nswfAllowed, coinEmoji, AdminRole, redditToken } = require('../config.json');
if(!message.guild === null) {
if(message.member.roles.cache.some(role => role.name === AdminRole)){
diff --git a/commands/memes.js b/commands/memes.js
index b4a0173..2459fd2 100644
--- a/commands/memes.js
+++ b/commands/memes.js
@@ -3,6 +3,8 @@ module.exports = {
description: "memes",
execute(message, args){
+ const { prefix, token, nswfAllowed, coinEmoji, AdminRole, redditToken } = require('../config.json');
+
var snoowrap = require('snoowrap');
const r = new snoowrap({
userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0',
diff --git a/commands/penis.js b/commands/penis.js
index 1e86efc..1ce8913 100644
--- a/commands/penis.js
+++ b/commands/penis.js
@@ -3,6 +3,8 @@ module.exports = {
description: "nsfw content",
execute(message, args){
+ const { prefix, token, nswfAllowed, coinEmoji, AdminRole, redditToken } = require('../config.json');
+
if (message.channel.nsfw) {
var snoowrap = require('snoowrap');