Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-t committed Oct 23, 2023
1 parent 010fb4a commit 335beac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/pull_request_template.md
Expand Up @@ -4,7 +4,8 @@ Fixes: #
# Quick description of your approach:

## Checklist before requesting a review:
- [ ] I have removed the comments fron the questions
- [ ] I have removed the comments from the questions
- [ ] I have changes all of the fixed ids to use the production id's
- [ ] I have added comments to my code, particularly in hard-to-understand areas
- [ ] I have removed all of the debugging 'console.logs'
- [ ] I have ensured that all of my variables, functions, etc. are named sensibly (Are able to be understood by someone who has not seen my code before)
Expand Down
12 changes: 6 additions & 6 deletions commands/test-command.ts
Expand Up @@ -36,7 +36,7 @@ async function checkForFeedbackRequests() {
Wir können Contraversum nur durch Feedback unserer Nutzerinnen und Nutzer verbessern.
Daher wäre es ein wichtiger Beitrag für das Projekt und damit auch für die Depolarisierung
der Gesellschaft, wenn du uns Feedback geben könntest. Es dauert weniger als 3 Minuten. Vielen Dank, dein ContraBot ❤️`,
components: [ actionRow ]
components: [actionRow]
});

// Update context for this user in the database
Expand Down Expand Up @@ -71,7 +71,7 @@ export async function sendTestButton() {
const guild: Guild | undefined = client.guilds.cache.get(guildId);
if (!guild) throw new Error('Guild not found');

(guild.channels.cache.get("1135557183845711983") as TextChannel).send({ components: [ actionRow ] }); // Channel Id for #How-to-basics
(guild.channels.cache.get("1135557183845711983") as TextChannel).send({ components: [actionRow] }); // Channel Id for #How-to-basics
};


Expand All @@ -85,7 +85,7 @@ async function sendTestReminder() {
const oneWeekAgo = new Date();
oneWeekAgo.setDate(oneWeekAgo.getDate() - 7);

for (const [ userID, member ] of members) {
for (const [userID, member] of members) {
const joinDate = member.joinedAt;
if (!joinDate) continue;

Expand Down Expand Up @@ -134,7 +134,7 @@ export async function sendQuestion(interaction: any) {
if (currentQuestionIndex < questions.length) {
const embed = new EmbedBuilder()
.setTitle(`Frage: ${currentQuestionDisplay}/38`)
.setDescription(questions[ currentQuestionIndex ].question)
.setDescription(questions[currentQuestionIndex].question)
.setColor('#fb2364');

const builder = new ActionRowBuilder<ButtonBuilder>().addComponents([
Expand All @@ -153,8 +153,8 @@ export async function sendQuestion(interaction: any) {
]);

interaction.user.send({
embeds: [ embed ],
components: [ builder ]
embeds: [embed],
components: [builder]
});

const encryptedUserVector = encrypt(JSON.stringify(userResponses));
Expand Down

0 comments on commit 335beac

Please sign in to comment.