Skip to content

Commit

Permalink
modified: commands.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ARCIST-AI committed May 14, 2024
1 parent 6be5289 commit 6d7b3d4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,47 @@ const LINK_COMMAND = {
contexts: [1],
};

// Scrape command to scrape conversation text
const SCRAPE_COMMAND = {
name: 'scrape',
type: 1,
description: 'Scrape the full text of a conversation with another user',
options: [
{
type: 6,
name: 'user',
description: 'The user to scrape the conversation with',
required: true,
},
],
integration_types: [1],
contexts: [0, 1, 2],
};

// Print command to print conversation text to a file
const PRINT_COMMAND = {
name: 'print',
type: 1,
description: 'Print the scraped conversation text to a .txt file',
options: [
{
type: 3,
name: 'filename',
description: 'The name of the file to print the conversation to',
required: true,
},
],
integration_types: [1],
contexts: [0, 1, 2],
};

const ALL_COMMANDS = [
WIKI_COMMAND,
LEADERBOARD_COMMAND,
PROFILE_COMMAND,
LINK_COMMAND,
SCRAPE_COMMAND,
PRINT_COMMAND,
];

InstallGlobalCommands(process.env.APP_ID, ALL_COMMANDS);

0 comments on commit 6d7b3d4

Please sign in to comment.