From 212691fd6f5a7749f7956dc533f53d29c368aa57 Mon Sep 17 00:00:00 2001 From: Sandaru Tharuneth Date: Thu, 4 May 2023 19:05:11 +0530 Subject: [PATCH] Changes to be committed: modified: src/config/config.json modified: src/slashCommands/information/imagine.js --- src/config/config.json | 1 + src/slashCommands/information/imagine.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config/config.json b/src/config/config.json index bfd7f31..2637063 100644 --- a/src/config/config.json +++ b/src/config/config.json @@ -1,5 +1,6 @@ { "TOKEN": "YOUR TOKEN", + "API": "YOUR REPLICATE API KEY", "CLIENTID": "YOUR BOT ID", "OWNER": ["YOUR ID"] } \ No newline at end of file diff --git a/src/slashCommands/information/imagine.js b/src/slashCommands/information/imagine.js index 78c7aa5..56bb474 100644 --- a/src/slashCommands/information/imagine.js +++ b/src/slashCommands/information/imagine.js @@ -1,4 +1,5 @@ const { SlashCommandBuilder, EmbedBuilder, ApplicationCommandOptionType, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require("discord.js") +const config = require("../../config/config.json") module.exports = { @@ -18,7 +19,7 @@ module.exports = { const Replicate = (await import("replicate")).default const replicate = new Replicate({ - auth: "add your replicate token here", + auth: config.API, }); const output = await