Skip to content

Commit

Permalink
Merge pull request #373 from RitaBot-Project/test-branch
Browse files Browse the repository at this point in the history
Update RitaBot
  • Loading branch information
ArtanisTheOne committed May 23, 2021
2 parents 1a52357 + 5460a1c commit f3dbfcd
Show file tree
Hide file tree
Showing 15 changed files with 114 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"no-prototype-builtins": "warn",
"padded-blocks": ["warn", "always"],
"new-cap": ["warn", {"properties": false}],
"capitalized-comments": "warn",
"capitalized-comments": "off",
"quote-props": "warn",
"no-plusplus": "warn",
// -----------
Expand Down
8 changes: 4 additions & 4 deletions src/commands/future_commands/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports.ban = function ban (data)
// Command Code
// -------------

console.log("DEBUG: Ban");
// console.log("DEBUG: Ban");

data.color = "info";
data.text = `Ban`;
Expand All @@ -40,7 +40,7 @@ module.exports.unban = function unban (data)
// Command Code
// -------------

console.log("DEBUG: Unban");
// console.log("DEBUG: Unban");

data.color = "info";
data.text = `Unban`;
Expand All @@ -64,7 +64,7 @@ module.exports.mute = function mute (data)
// Command Code
// -------------

console.log("DEBUG: Mute");
// console.log("DEBUG: Mute");

data.color = "info";
data.text = `Mute`;
Expand All @@ -88,7 +88,7 @@ module.exports.unmute = function unmute (data)
// Command Code
// -------------

console.log("DEBUG: Unmute");
// console.log("DEBUG: Unmute");

data.color = "info";
data.text = `Unmute`;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/info_commands/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ module.exports.ident = function ident (data)
// Gather ID Details
// ------------------

console.log("DEBUG: ID Message");
// console.log("DEBUG: ID Message");

data.color = "info";
data.text = `*User Name:* \`${data.message.author.username}\`\n`;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/info_commands/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ module.exports = function run (data)
if (auth.devID.includes(data.message.author.id))
{

console.log("DEBUG: Developer ID Confirmed");
// console.log("DEBUG: Developer ID Confirmed");
break AreDev;

}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/settings_commands/bot2bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const bot2bot = function bot2bot (data)
if (commandVariable1 === "on" || commandVariable1 === "off")
{

console.log(`DEBUG: bot2bot variable ${commandVariable1}`);
// console.log(`DEBUG: bot2bot variable ${commandVariable1}`);
return db.updateBot2BotVar(
data.message.channel.guild.id,
commandVariable1,
Expand Down
14 changes: 7 additions & 7 deletions src/commands/settings_commands/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const debuging = async function debuging (data)
if (commandVariable1 === "on")
{

console.log("Debug on 1");
// console.log("DEBUG on 1");
console.log(`Debug on 1 ${process.env.DISCORD_DEBUG_WEBHOOK_ID}`);
// Checks if there iS an item in the channels collection that corresponds with the supplied parameters, returns a boolean
const check = (element) => element.name === "ritabot-debug";
Expand Down Expand Up @@ -75,7 +75,7 @@ const debuging = async function debuging (data)

}

console.log("Debug on 3");
// console.log("DEBUG on 3");
// Create a new channel with permission overwrites
await data.message.guild.channels.create("ritabot-debug", {
"permissionOverwrites": [
Expand All @@ -87,17 +87,17 @@ const debuging = async function debuging (data)
"type": "text"
});

console.log("Debug on 4");
// console.log("DEBUG on 4");
const chan = data.message.guild.channels.cache.find((channel) => channel.name === "ritabot-debug");
console.log(`DEBUG: Chan ID ${chan}`);
// console.log(`DEBUG: Chan ID ${chan}`);
await webhook(chan);

const hooks = await chan.fetchWebhooks();
const webhookValue = hooks.find((webhook) => webhook.name === "Rita Diagnostic Tool");
console.log(`The ID is ${webhookValue.id}`);
console.log(`The Token is ${webhookValue.token}`);

console.log(`DEBUG: debug variable ${commandVariable1}`);
// console.log(`DEBUG: debug variable ${commandVariable1}`);
return db.updateWebhookVar(
data.message.channel.guild.id,
// This would be the Webhook ID
Expand Down Expand Up @@ -145,7 +145,7 @@ const debuging = async function debuging (data)
else if (commandVariable1 === "off")
{

console.log(`DEBUG: debug variable ${commandVariable1}`);
// console.log(`DEBUG: debug variable ${commandVariable1}`);
return db.removeWebhook(
data.message.channel.guild.id,
function error (err)
Expand Down Expand Up @@ -205,7 +205,7 @@ module.exports = function run (data)
if (auth.devID.includes(data.message.author.id))
{

console.log("DEBUG: Developer ID Confirmed");
// console.log("DEBUG: Developer ID Confirmed");
break AreDev;

}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/settings_commands/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const embed = function embed (data)
if (commandVariable1 === "on" || commandVariable1 === "off")
{

console.log(`DEBUG: embed variable ${commandVariable1}`);
// console.log(`DEBUG: embed variable ${commandVariable1}`);
return db.updateEmbedVar(
data.message.channel.guild.id,
commandVariable1,
Expand Down
4 changes: 2 additions & 2 deletions src/commands/settings_commands/prefix.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const prefix = function prefix (data)
{

const reset = "!tr";
console.log(`DEBUG: New Prefix ${newPrefix}`);
// console.log(`DEBUG: New Prefix ${newPrefix}`);
return db.updatePrefix(
data.message.channel.guild.id,
reset,
Expand Down Expand Up @@ -59,7 +59,7 @@ const prefix = function prefix (data)
else if (newPrefix !== "")
{

console.log(`DEBUG: New Prefix ${newPrefix}`);
// console.log(`DEBUG: New Prefix ${newPrefix}`);
return db.updatePrefix(
data.message.channel.guild.id,
// This would be the new prefix
Expand Down
4 changes: 2 additions & 2 deletions src/commands/settings_commands/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ module.exports = function run (data)
if (auth.devID.includes(data.message.author.id))
{

console.log("DEBUG: Developer ID Confirmed");
// console.log("DEBUG: Developer ID Confirmed");
break AreDev;

}
Expand All @@ -334,7 +334,7 @@ module.exports = function run (data)
if (auth.devID.includes(data.message.author.id))
{

console.log("DEBUG: Developer ID Confirmed");
// console.log("DEBUG: Developer ID Confirmed");
break AreDev;

}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/translation_commands/translate.stop.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const removeTask = function removeTask (res, data, origin, dest, destDisplay)
function error (err)
{

console.log("DEBUG: remoteTask()");
// console.log("DEBUG: remoteTask()");
if (err)
{

Expand Down
4 changes: 2 additions & 2 deletions src/commands/utility_commands/donate.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const donate = function donate (data)
if (commandVariable1 === "github")
{

console.log(`DEBUG: donate ${commandVariable1}`);
// console.log(`DEBUG: donate ${commandVariable1}`);
{

const outputgh =
Expand All @@ -40,7 +40,7 @@ const donate = function donate (data)
else if (commandVariable1 === "oc")
{

console.log(`DEBUG: donate ${commandVariable1}`);
// console.log(`DEBUG: donate ${commandVariable1}`);
{

const outputoc =
Expand Down
Loading

0 comments on commit f3dbfcd

Please sign in to comment.