Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config command #23

Open
Keyrxng opened this issue Nov 17, 2023 · 33 comments
Open

config command #23

Keyrxng opened this issue Nov 17, 2023 · 33 comments

Comments

@Keyrxng
Copy link
Contributor

Keyrxng commented Nov 17, 2023

Allows an admin to update the bot config with nlp

@Keyrxng
Copy link
Contributor Author

Keyrxng commented Nov 17, 2023

/config help

Copy link
Contributor

ubqbot bot commented Nov 17, 2023

To use the '/config' command and generate a bot configuration file, you need to understand the structure of the configuration and the available options. Here is a breakdown of the bot config structure:

  1. keys (object):

    • evmPrivateEncrypted (optional string): Specifies the encrypted private key for the EVM.
    • openAi (optional string): Specifies the OpenAI API key.
  2. features (object):

    • assistivePricing (boolean, default: false): Enables or disables assistive pricing.
    • defaultLabels (array of strings, default: []): Specifies the default labels for the bot.
    • newContributorGreeting (object):
      • enabled (boolean, default: false): Enables or disables the new contributor greeting feature.
      • header (string, default: defaultGreetingHeader): Specifies the header for the greeting message.
      • displayHelpMenu (boolean, default: true): Enables or disables the display of the help menu in the greeting message.
      • footer (string, default: promotionComment): Specifies the footer for the greeting message.
    • publicAccessControl (object):
      • setLabel (boolean, default: true): Enables or disables setting labels for public access control.
      • fundExternalClosedIssue (boolean, default: true): Enables or disables funding external closed issues.
  3. timers (object):

    • reviewDelayTolerance (string duration, default: "1 day"): Specifies the review delay tolerance duration.
    • taskStaleTimeoutDuration (string duration, default: "4 weeks"): Specifies the task stale timeout duration.
    • taskFollowUpDuration (string duration, default: "0.5 weeks"): Specifies the task follow-up duration.
    • taskDisqualifyDuration (string duration, default: "1 week"): Specifies the task disqualify duration.
  4. payments (object):

    • maxPermitPrice (number, default: Number.MAX_SAFE_INTEGER): Specifies the maximum permit price.
    • evmNetworkId (number, default: 1): Specifies the EVM network ID.
    • basePriceMultiplier (number, default: 1): Specifies the base price multiplier.
    • issueCreatorMultiplier (number, default: 1): Specifies the issue creator multiplier.
  5. disabledCommands (array of strings, default: allCommands): Specifies the disabled commands.

  6. incentives (object):

    • comment (object):
      • elements (record of union types, default: allHtmlElementsSetToZero): Specifies the elements and their associated incentives.
      • totals (object):
        • character (number, default: 0, minimum: 0): Specifies the total incentive for characters.
        • word (number, default: 0, minimum: 0): Specifies the total incentive for words.
        • sentence (number, default: 0, minimum: 0): Specifies the total incentive for sentences.
        • paragraph (number, default: 0, minimum: 0): Specifies the total incentive for paragraphs.
        • comment (number, default: 0, minimum: 0): Specifies the total incentive for comments.
  7. labels (object):

    • time (array of strings, default: defaultTimeLabels): Specifies the time labels.
    • priority (array of strings, default: defaultPriorityLabels): Specifies the priority labels.
  8. miscellaneous (object):

    • maxConcurrentTasks (number, default: Number.MAX_SAFE_INTEGER): Specifies the maximum number of concurrent tasks.
    • promotionComment (string, default: promotionComment): Specifies the promotion comment.
    • registerWalletWithVerification (boolean, default: false): Enables or disables registering the wallet with verification.
    • openAiTokenLimit (number, default: 100000): Specifies the OpenAI token limit.

To use the '/config' command, you need to provide the desired values for the configuration options. You can specify the values directly in the command or provide them in a separate file. Make sure to follow the correct syntax and provide valid values for each option.

For example, to enable assistive pricing and set the default labels, you can use the following command:

/config features.assistivePricing=true features.defaultLabels=["label1", "label2"]

Remember to save the generated configuration file and use it accordingly in your bot setup.


```yaml {"prompt_tokens":697,"completion_tokens":974,"total_tokens":1671} ```

@ubq-testing ubq-testing deleted a comment from ubqbot bot Nov 17, 2023
@ubq-testing ubq-testing deleted a comment from KxyChain Nov 17, 2023
@ubq-testing ubq-testing deleted a comment from ubqbot bot Nov 17, 2023
@ubq-testing ubq-testing deleted a comment from KxyChain Nov 17, 2023
@KxyChain
Copy link

/config l00t these n00bs

Copy link
Contributor

ubqbot bot commented Nov 17, 2023

To use the '/config' command and generate a bot configuration file, you need to understand the structure of the configuration and the available options. Here is a breakdown of the bot config structure:

  1. keys (object):

    • evmPrivateEncrypted (optional string): Specifies the encrypted private key for the EVM.
    • openAi (optional string): Specifies the OpenAI API key.
  2. features (object):

    • assistivePricing (boolean, default: false): Enables or disables assistive pricing.
    • defaultLabels (array of strings, default: []): Specifies the default labels for tasks.
    • newContributorGreeting (object):
      • enabled (boolean, default: false): Enables or disables the new contributor greeting feature.
      • header (string, default: defaultGreetingHeader): Specifies the header for the greeting.
      • displayHelpMenu (boolean, default: true): Enables or disables the display of the help menu in the greeting.
      • footer (string, default: promotionComment): Specifies the footer for the greeting.
    • publicAccessControl (object):
      • setLabel (boolean, default: true): Enables or disables setting labels for public access control.
      • fundExternalClosedIssue (boolean, default: true): Enables or disables funding external closed issues.
  3. timers (object):

    • reviewDelayTolerance (string duration, default: "1 day"): Specifies the review delay tolerance duration.
    • taskStaleTimeoutDuration (string duration, default: "4 weeks"): Specifies the task stale timeout duration.
    • taskFollowUpDuration (string duration, default: "0.5 weeks"): Specifies the task follow-up duration.
    • taskDisqualifyDuration (string duration, default: "1 week"): Specifies the task disqualify duration.
  4. payments (object):

    • maxPermitPrice (number, default: Number.MAX_SAFE_INTEGER): Specifies the maximum permit price.
    • evmNetworkId (number, default: 1): Specifies the EVM network ID.
    • basePriceMultiplier (number, default: 1): Specifies the base price multiplier.
    • issueCreatorMultiplier (number, default: 1): Specifies the issue creator multiplier.
  5. disabledCommands (array of strings, default: allCommands): Specifies the disabled commands.

  6. incentives (object):

    • comment (object):
      • elements (record of union types, default: allHtmlElementsSetToZero): Specifies the elements and their associated incentives.
      • totals (object):
        • character (number, default: 0, minimum: 0): Specifies the total incentive for characters.
        • word (number, default: 0, minimum: 0): Specifies the total incentive for words.
        • sentence (number, default: 0, minimum: 0): Specifies the total incentive for sentences.
        • paragraph (number, default: 0, minimum: 0): Specifies the total incentive for paragraphs.
        • comment (number, default: 0, minimum: 0): Specifies the total incentive for comments.
  7. labels (object):

    • time (array of strings, default: defaultTimeLabels): Specifies the time labels.
    • priority (array of strings, default: defaultPriorityLabels): Specifies the priority labels.
  8. miscellaneous (object):

    • maxConcurrentTasks (number, default: Number.MAX_SAFE_INTEGER): Specifies the maximum number of concurrent tasks.
    • promotionComment (string, default: promotionComment): Specifies the promotion comment.
    • registerWalletWithVerification (boolean, default: false): Enables or disables registering the wallet with verification.
    • openAiTokenLimit (number, default: 100000): Specifies the OpenAI token limit.

To use the '/config' command, you need to provide the desired values for the configuration options. You can specify the values directly in the command or provide them in a separate file. Make sure to follow the correct syntax and provide valid values for each option.

For example, to enable assistive pricing and set the default labels, you can use the following command:

/config features.assistivePricing=true features.defaultLabels=["label1", "label2"]

Remember to save the generated configuration file and use it accordingly in your bot setup.


{"prompt_tokens":697,"completion_tokens":970,"total_tokens":1667}

@ubq-testing ubq-testing deleted a comment from ubqbot bot Nov 17, 2023
@Keyrxng
Copy link
Contributor Author

Keyrxng commented Nov 17, 2023

/config wtf

@ubq-testing ubq-testing deleted a comment from KxyChain Nov 17, 2023
Copy link
Contributor

ubqbot bot commented Nov 17, 2023

I apologize, but I'm not sure what you mean by "wtf". Could you please provide more context or clarify your request?


{"prompt_tokens":659,"completion_tokens":27,"total_tokens":686}

@KxyChain
Copy link

/config dont sink my battleship

Copy link
Contributor

ubqbot bot commented Nov 17, 2023

I apologize, but I'm not sure I understand what you mean by "don't sink my battleship" in the context of configuring the system. Could you please provide more specific instructions or requirements for the configuration?


{"prompt_tokens":662,"completion_tokens":43,"total_tokens":705}

@ubq-testing ubq-testing deleted a comment from ubqbot bot Nov 17, 2023
@Keyrxng
Copy link
Contributor Author

Keyrxng commented Nov 17, 2023

/config help

Copy link
Contributor

ubqbot bot commented Nov 17, 2023

Sure! I can help you with generating a configuration file. Please provide me with the specific properties and values you would like to include in the configuration.


{"prompt_tokens":658,"completion_tokens":30,"total_tokens":688}

@Keyrxng
Copy link
Contributor Author

Keyrxng commented Nov 17, 2023

/config help

Copy link
Contributor

ubqbot bot commented Nov 17, 2023

To use the '/config' command and generate a bot configuration file, you need to understand the structure of the configuration and the available options. Here is a breakdown of the bot config structure:

  1. keys (object):

    • evmPrivateEncrypted (optional string): Specifies the encrypted private key for the EVM.
    • openAi (optional string): Specifies the OpenAI API key.
  2. features (object):

    • assistivePricing (boolean, default: false): Enables or disables assistive pricing.
    • defaultLabels (array of strings, default: []): Specifies the default labels for the bot.
    • newContributorGreeting (object):
      • enabled (boolean, default: false): Enables or disables the new contributor greeting feature.
      • header (string, default: defaultGreetingHeader): Specifies the header for the greeting message.
      • displayHelpMenu (boolean, default: true): Enables or disables the display of the help menu in the greeting message.
      • footer (string, default: promotionComment): Specifies the footer for the greeting message.
    • publicAccessControl (object):
      • setLabel (boolean, default: true): Enables or disables setting labels for public access control.
      • fundExternalClosedIssue (boolean, default: true): Enables or disables funding external closed issues.
  3. timers (object):

    • reviewDelayTolerance (string duration, default: "1 day"): Specifies the review delay tolerance duration.
    • taskStaleTimeoutDuration (string duration, default: "4 weeks"): Specifies the task stale timeout duration.
    • taskFollowUpDuration (string duration, default: "0.5 weeks"): Specifies the task follow-up duration.
    • taskDisqualifyDuration (string duration, default: "1 week"): Specifies the task disqualify duration.
  4. payments (object):

    • maxPermitPrice (number, default: Number.MAX_SAFE_INTEGER): Specifies the maximum permit price.
    • evmNetworkId (number, default: 1): Specifies the EVM network ID.
    • basePriceMultiplier (number, default: 1): Specifies the base price multiplier.
    • issueCreatorMultiplier (number, default: 1): Specifies the issue creator multiplier.
  5. disabledCommands (array of strings, default: allCommands): Specifies the disabled commands.

  6. incentives (object):

    • comment (object):
      • elements (record of union types, default: allHtmlElementsSetToZero): Specifies the elements and their associated incentives.
      • totals (object):
        • character (number, default: 0, minimum: 0): Specifies the total incentive for characters.
        • word (number, default: 0, minimum: 0): Specifies the total incentive for words.
        • sentence (number, default: 0, minimum: 0): Specifies the total incentive for sentences.
        • paragraph (number, default: 0, minimum: 0): Specifies the total incentive for paragraphs.
        • comment (number, default: 0, minimum: 0): Specifies the total incentive for comments.
  7. labels (object):

    • time (array of strings, default: defaultTimeLabels): Specifies the time labels.
    • priority (array of strings, default: defaultPriorityLabels): Specifies the priority labels.
  8. miscellaneous (object):

    • maxConcurrentTasks (number, default: Number.MAX_SAFE_INTEGER): Specifies the maximum number of concurrent tasks.
    • promotionComment (string, default: promotionComment): Specifies the promotion comment.
    • registerWalletWithVerification (boolean, default: false): Enables or disables registering the wallet with verification.
    • openAiTokenLimit (number, default: 100000): Specifies the OpenAI token limit.

To use the '/config' command, you need to provide the desired values for the configuration options. For example, to enable assistive pricing, you can use the command '/config features.assistivePricing=true'. Similarly, you can set values for other options by specifying the path to the option and the desired value.

Note that some options have default values, so you only need to specify the options that you want to change.

I hope this helps! Let me know if you have any further questions.


{"prompt_tokens":697,"completion_tokens":964,"total_tokens":1661}

@KxyChain
Copy link

/config help

Copy link
Contributor

ubqbot bot commented Nov 17, 2023

To use the '/config' command and generate a bot configuration file, you need to understand the structure of the configuration and the available options. Here is a breakdown of the bot config structure:

  1. keys (object):

    • evmPrivateEncrypted (optional string): Specifies the encrypted private key for the EVM.
    • openAi (optional string): Specifies the OpenAI API key.
  2. features (object):

    • assistivePricing (boolean, default: false): Enables or disables assistive pricing.
    • defaultLabels (array of strings, default: []): Specifies the default labels for tasks.
    • newContributorGreeting (object):
      • enabled (boolean, default: false): Enables or disables the new contributor greeting feature.
      • header (string, default: defaultGreetingHeader): Specifies the header for the greeting.
      • displayHelpMenu (boolean, default: true): Enables or disables the display of the help menu in the greeting.
      • footer (string, default: promotionComment): Specifies the footer for the greeting.
    • publicAccessControl (object):
      • setLabel (boolean, default: true): Enables or disables setting labels for public access control.
      • fundExternalClosedIssue (boolean, default: true): Enables or disables funding external closed issues.
  3. timers (object):

    • reviewDelayTolerance (string duration, default: "1 day"): Specifies the review delay tolerance duration.
    • taskStaleTimeoutDuration (string duration, default: "4 weeks"): Specifies the task stale timeout duration.
    • taskFollowUpDuration (string duration, default: "0.5 weeks"): Specifies the task follow-up duration.
    • taskDisqualifyDuration (string duration, default: "1 week"): Specifies the task disqualify duration.
  4. payments (object):

    • maxPermitPrice (number, default: Number.MAX_SAFE_INTEGER): Specifies the maximum permit price.
    • evmNetworkId (number, default: 1): Specifies the EVM network ID.
    • basePriceMultiplier (number, default: 1): Specifies the base price multiplier.
    • issueCreatorMultiplier (number, default: 1): Specifies the issue creator multiplier.
  5. disabledCommands (array of strings, default: allCommands): Specifies the disabled commands.

  6. incentives (object):

    • comment (object):
      • elements (record of union types, default: allHtmlElementsSetToZero): Specifies the elements and their associated incentives.
      • totals (object):
        • character (number, default: 0, minimum: 0): Specifies the total incentive for characters.
        • word (number, default: 0, minimum: 0): Specifies the total incentive for words.
        • sentence (number, default: 0, minimum: 0): Specifies the total incentive for sentences.
        • paragraph (number, default: 0, minimum: 0): Specifies the total incentive for paragraphs.
        • comment (number, default: 0, minimum: 0): Specifies the total incentive for comments.
  7. labels (object):

    • time (array of strings, default: defaultTimeLabels): Specifies the time labels.
    • priority (array of strings, default: defaultPriorityLabels): Specifies the priority labels.
  8. miscellaneous (object):

    • maxConcurrentTasks (number, default: Number.MAX_SAFE_INTEGER): Specifies the maximum number of concurrent tasks.
    • promotionComment (string, default: promotionComment): Specifies the promotion comment.
    • registerWalletWithVerification (boolean, default: false): Enables or disables registering the wallet with verification.
    • openAiTokenLimit (number, default: 100000): Specifies the OpenAI token limit.

To use the '/config' command, you need to provide the desired values for the configuration options. You can specify the values directly in the command or provide them in a separate file. Make sure to follow the correct syntax and provide valid values for each option.

For example, to enable assistive pricing and set the default labels, you can use the following command:

/config features.assistivePricing=true features.defaultLabels=["label1", "label2"]

Remember to save the generated configuration file and use it accordingly in your bot setup.


{"prompt_tokens":697,"completion_tokens":970,"total_tokens":1667}

@KxyChain
Copy link

/config help

Copy link
Contributor

ubqbot bot commented Nov 17, 2023

- You must be an admin to use this command.

@ubq-testing ubq-testing deleted a comment from ubqbot bot Nov 17, 2023
@Keyrxng
Copy link
Contributor Author

Keyrxng commented Nov 17, 2023

/help

Copy link
Contributor

ubqbot bot commented Nov 17, 2023

Available Commands

Command Description Example
/start Assign yourself to the issue. /start
/stop Unassign yourself from the issue. /stop
/help List all available commands. /help
/autopay Toggle automatic payment for the completion of the current issue. /autopay true
/query Returns the user's wallet, access, and multiplier information. /query @user
/ask Ask a context aware question. /ask is x or y the best approach?
/multiplier Set the task payout multiplier for a specific contributor, and provide a reason for why. /multiplier @user 0.5 "multiplier
reason"
/labels Set access control, for admins only. /labels @user priority time
price
/authorize Approve a label change, for admins only. /authorize
/wallet Register your wallet address for payments. /wallet ubq.eth
/config Update the bot configuration, for admins only. /config I want the max payout
to be 1000

@Keyrxng
Copy link
Contributor Author

Keyrxng commented Nov 17, 2023

/config help

@ubq-testing ubq-testing deleted a comment from ubqbot bot Nov 17, 2023
@Keyrxng
Copy link
Contributor Author

Keyrxng commented Nov 17, 2023

/config help

@ubq-testing ubq-testing deleted a comment from ubqbot bot Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants