Skip to content

Commit 212691f

Browse files
committedMay 4, 2023
Changes to be committed:
modified: src/config/config.json modified: src/slashCommands/information/imagine.js
1 parent 5e9576c commit 212691f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎src/config/config.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"TOKEN": "YOUR TOKEN",
3+
"API": "YOUR REPLICATE API KEY",
34
"CLIENTID": "YOUR BOT ID",
45
"OWNER": ["YOUR ID"]
56
}

‎src/slashCommands/information/imagine.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const { SlashCommandBuilder, EmbedBuilder, ApplicationCommandOptionType, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require("discord.js")
2+
const config = require("../../config/config.json")
23

34

45
module.exports = {
@@ -18,7 +19,7 @@ module.exports = {
1819
const Replicate = (await import("replicate")).default
1920

2021
const replicate = new Replicate({
21-
auth: "add your replicate token here",
22+
auth: config.API,
2223
});
2324

2425
const output = await

0 commit comments

Comments
 (0)
Please sign in to comment.