This commit is contained in:
Noah committed 2022-01-30 00:07:04 -06:00
1 parent dcba3312dd
commit ebe29b403e
8 files changed
+8 -13

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # This workflow will do a clean installation of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI name: Node.js CI
+1 -1
View File
@@ -26,7 +26,7 @@ module.exports = new Command({
permissions: ["SEND_MESSAGES"], permissions: ["SEND_MESSAGES"],
async run(interaction) { async run(interaction) {
const { getRole} = interaction.client; const { getRole } = interaction.client;
let SupportStaff = await getRole(supportbot.Staff, interaction.guild); let SupportStaff = await getRole(supportbot.Staff, interaction.guild);
let Admin = await getRole(supportbot.Admin, interaction.guild); let Admin = await getRole(supportbot.Admin, interaction.guild);
if (!SupportStaff || !Admin) if (!SupportStaff || !Admin)
+2 -2
View File
@@ -25,7 +25,7 @@ module.exports = new Command({
permissions: ["SEND_MESSAGES"], permissions: ["SEND_MESSAGES"],
async run(interaction) { async run(interaction) {
const { getRole, getChannel} = interaction.client; const { getRole, getChannel } = interaction.client;
if (supportbot.StaffOnly) { if (supportbot.StaffOnly) {
let SupportStaff = await getRole(supportbot.Staff, interaction.guild); let SupportStaff = await getRole(supportbot.Staff, interaction.guild);
let Admin = await getRole(supportbot.Admin, interaction.guild); let Admin = await getRole(supportbot.Admin, interaction.guild);
@@ -164,7 +164,7 @@ module.exports = new Command({
ticket.subUsers.forEach(async (subUser) => { ticket.subUsers.forEach(async (subUser) => {
await interaction.client.users.cache await interaction.client.users.cache
.get(subUser) .get(subUser)
.send({embeds: [transcriptEmbed], files: [file]}); .send({ embeds: [transcriptEmbed], files: [file] });
}); });
} }
await interaction.channel.delete().catch(async (error) => { await interaction.channel.delete().catch(async (error) => {
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = new Command({
permissions: ["SEND_MESSAGES"], permissions: ["SEND_MESSAGES"],
async run(interaction) { async run(interaction) {
const { getRole} = interaction.client; const { getRole } = interaction.client;
let SupportStaff = await getRole(supportbot.Staff, interaction.guild); let SupportStaff = await getRole(supportbot.Staff, interaction.guild);
let Admin = await getRole(supportbot.Admin, interaction.guild); let Admin = await getRole(supportbot.Admin, interaction.guild);
+1 -1
View File
@@ -19,7 +19,7 @@ module.exports = new Command({
permissions: ["SEND_MESSAGES"], permissions: ["SEND_MESSAGES"],
async run(interaction) { async run(interaction) {
const { getRole} = interaction.client; const { getRole } = interaction.client;
let SupportStaff = await getRole(supportbot.Staff, interaction.guild); let SupportStaff = await getRole(supportbot.Staff, interaction.guild);
let Admin = await getRole(supportbot.Admin, interaction.guild); let Admin = await getRole(supportbot.Admin, interaction.guild);
if (!SupportStaff || !Admin) if (!SupportStaff || !Admin)
+1 -1
View File
@@ -26,7 +26,7 @@ module.exports = new Command({
permissions: ["SEND_MESSAGES"], permissions: ["SEND_MESSAGES"],
async run(interaction) { async run(interaction) {
const { getRole} = interaction.client; const { getRole } = interaction.client;
let Staff = await getRole(supportbot.Staff, interaction.guild); let Staff = await getRole(supportbot.Staff, interaction.guild);
let Admin = await getRole(supportbot.Admin, interaction.guild); let Admin = await getRole(supportbot.Admin, interaction.guild);
if (!Staff || !Admin) if (!Staff || !Admin)
+1 -1
View File
@@ -26,7 +26,7 @@ module.exports = new Command({
permissions: ["SEND_MESSAGES"], permissions: ["SEND_MESSAGES"],
async run(interaction) { async run(interaction) {
const { getChannel} = interaction.client; const { getChannel } = interaction.client;
const suggestChannel = await getChannel( const suggestChannel = await getChannel(
supportbot.SuggestionChannel, supportbot.SuggestionChannel,
interaction.guild interaction.guild
-5
View File
@@ -1,10 +1,6 @@
// SupportBot | Emerald Services // SupportBot | Emerald Services
// Command Structure // Command Structure
const fs = require("fs");
const yaml = require("js-yaml");
class Command { class Command {
constructor(options) { constructor(options) {
this.name = options.name; this.name = options.name;
@@ -15,5 +11,4 @@ class Command {
this.defaultPermission = true; this.defaultPermission = true;
} }
} }
module.exports = Command; module.exports = Command;