Skip to content

Commit

Permalink
changed json to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-t committed Jan 7, 2024
1 parent 2e2c7ff commit 9374b50
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion commands/match-command.ts
@@ -1,6 +1,6 @@
import { db } from '../common';
import 'dotenv/config';
import questions from '../questions.json';
import { questions } from '../questions';
import { sendQuestion } from './test-command';
import { ChatInputCommandInteraction } from "discord.js";

Expand Down
2 changes: 1 addition & 1 deletion commands/test-command.ts
@@ -1,7 +1,7 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder, SlashCommandBuilder, Guild, Role, User, TextChannel, ChatInputCommandInteraction } from 'discord.js';
import cron from 'cron';
import 'dotenv/config';
import questions from '../questions.json';
import { questions } from '../questions';
import { db, client } from "../common";
import { encrypt, decrypt } from "../encryptionUtils";
import { findMatchingUser } from "../functions/findMatchingUser";
Expand Down
2 changes: 1 addition & 1 deletion functions/conversationStarter.ts
@@ -1,5 +1,5 @@
import { EmbedBuilder, User } from 'discord.js';
import questions from '../questions.json';
import { questions } from '../questions';
import { CronJob } from "cron";
import { client, db } from "../common";

Expand Down
2 changes: 1 addition & 1 deletion questions.json → questions.ts
@@ -1,4 +1,4 @@
[
export const questions = [
{ "question": "Auf allen Autobahnen soll ein generelles Tempolimit gelten.", "tag": ["Verkehrssicherheit", " Klimawandel"] },
{ "question": "Deutschland soll seine Verteidigungsausgaben erhöhen.", "tag": "Verteidigungspolitik" },
{ "question": "Bei Bundestagswahlen sollen auch Jugendliche ab 16 Jahren wählen dürfen.", "tag": ["Wahlalter", "Demokratie"] },
Expand Down

0 comments on commit 9374b50

Please sign in to comment.