Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
lxRbckl committed Jan 30, 2024
1 parent 1c9d9af commit 245beba
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ FROM node:19.5.0


# referencing kubernetes environment #
ENV guildId ${guildId}
ENV gptModel ${gptModel}
ENV channelId ${channelId}
ENV tokenopenai ${tokenopenai}
ENV tokendiscord ${tokendiscord}
ENV applicationId ${applicationId}


WORKDIR /usr/app
Expand Down
6 changes: 3 additions & 3 deletions source/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class client {
openaiToken,
discordToken,

guildId = '974210528958369863',
channelId = '1061387142082863104',
applicationId = '970221184065081374'
guildId = process.env.guildId,
channelId = process.env.channelId,
applicationId = process.env.applicationId

) {

Expand Down
7 changes: 6 additions & 1 deletion source/command/discussion.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ class discussion {

constructor(openaiToken) {

this.gpt = new gpt({token : openaiToken});
this.gpt = new gpt({

token : openaiToken,
model : process.env.gptModel

});
this.query = 'Ask me a very interesting question.';

}
Expand Down

0 comments on commit 245beba

Please sign in to comment.