Skip to content

Commit

Permalink
hold-feat: Gemini
Browse files Browse the repository at this point in the history
  • Loading branch information
gensart-ai committed Feb 18, 2024
1 parent 2e63052 commit d83b6d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/services/external/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ const geminiText = async (text: string): Promise<GeminiResponse> => {

const geminiTextOnly: Executor = async (client, message) => {
try {

// ! Gemini is still not supported on my current VPS
// Temporary warn message
wweb.replyMessage(message, `${config.botShortName} tidak dapat memproses perintah ini, fitur sedang dalam tahap pengembangan. Silahkan coba kembali nanti ya`);
return 0;

// Delete command from text
let text: string = message.body;
text = text.split(' ').slice(1).join(' ');
Expand Down
2 changes: 1 addition & 1 deletion src/services/internal/command-guide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const commandGuide: Executor = async (client, message) => {
'*== Quotes ==*',
'.quotes\n',
'*== Fitur AI ==*',
'.gemini [pertanyaan/perintah]\n',
'.gemini - *DIHENTIKAN SEMENTARA* - \n',
'*== Translate ==*',
'.indotoeng [text indo] - Translate Indonesia ke Inggris',
'.engtoindo [text inggris] - Translate Inggris ke Indonesia\n',
Expand Down

0 comments on commit d83b6d1

Please sign in to comment.