Compare commits

..

No commits in common. "main" and "v1.2.0" have entirely different histories.
main ... v1.2.0

2 changed files with 6 additions and 54 deletions

View File

@ -1,34 +0,0 @@
name: Code Analysis
on:
push:
branches:
- main
jobs:
sonar:
name: SonarQube
steps:
- name: Checkout Source Files
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarCube Scan
uses: SonarSource/sonarqube-scan-action@v4
timeout-minutes: 10
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: "https://quality.nhcarrigan.com"
with:
args: >
-Dsonar.sources=.
-Dsonar.projectKey=aria-iuvo
- name: SonarQube Quality Gate check
uses: sonarsource/sonarqube-quality-gate-action@v1
with:
pollingTimeoutSec: 600
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: "https://quality.nhcarrigan.com"

View File

@ -3,14 +3,11 @@
* @license Naomi's Public License * @license Naomi's Public License
* @author Naomi Carrigan * @author Naomi Carrigan
*/ */
import {
ActionRowBuilder,
ButtonBuilder,
ButtonStyle,
type ChatInputCommandInteraction,
type MessageContextMenuCommandInteraction,
} from "discord.js";
import { i18n } from "./i18n.js"; import { i18n } from "./i18n.js";
import type {
ChatInputCommandInteraction,
MessageContextMenuCommandInteraction,
} from "discord.js";
/** /**
* Responds to an interaction with a generic error message. * Responds to an interaction with a generic error message.
@ -23,20 +20,9 @@ export const replyToError = async(
| MessageContextMenuCommandInteraction, | MessageContextMenuCommandInteraction,
locale: string, locale: string,
): Promise<void> => { ): Promise<void> => {
const button = new ButtonBuilder().
setLabel(i18n("button.support", locale)).
setStyle(ButtonStyle.Link).
setURL("https://chat.nhcarrigan.com");
const row = new ActionRowBuilder<ButtonBuilder>().addComponents(button);
if (interaction.deferred || interaction.replied) { if (interaction.deferred || interaction.replied) {
await interaction.editReply({ await interaction.editReply(i18n("command-error", locale));
components: [ row ],
content: i18n("command-error", locale),
});
return; return;
} }
await interaction.reply({ await interaction.reply(i18n("command-error", locale));
components: [ row ],
content: i18n("command-error", locale),
});
}; };