Skip to content

Commit

Permalink
Merge pull request #134 from Hexastack/fix/cli-prefix
Browse files Browse the repository at this point in the history
fix: cli prefix sanitize
  • Loading branch information
marrouchi authored Oct 3, 2024
2 parents 6c02022 + cddc53c commit c0fe6b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

## Description

[Hexabot](https://hexabot.ai/) is an open-source chatbot solution that allows users to create and manage AI-powered, multi-channel, and multilingual chatbots with ease. Hexabot is designed for flexibility and customization, offering powerful text-to-action capabilities. Originally a closed-source project (version 1), we've now open-sourced version 2 to contribute to the community and enable developers to customize and extend the platform with extensions.
[Hexabot](https://hexabot.ai/) is an open-source AI chatbot / agent solution. It allows you to create and manage multi-channel, and multilingual chatbots / agents with ease. Hexabot is designed for flexibility and customization, offering powerful text-to-action capabilities. Originally a closed-source project (version 1), we've now open-sourced version 2 to contribute to the community and enable developers to customize and extend the platform with extensions.

**NOTE:** We are currently working to package it in a way that it would be easy to install and use, hence there's no version release just yet.

<a href="https://www.producthunt.com/posts/hexabot?embed=true&utm_source=badge-featured&utm_medium=badge&utm_souce=badge-hexabot" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=477532&theme=light" alt="Hexabot - Create&#0032;exceptional&#0032;chatbot&#0032;experiences&#0046;&#0032;100&#0037;&#0032;Open&#0032;Source&#0046; | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
## Features
Expand Down Expand Up @@ -45,8 +46,8 @@ To ensure Hexabot runs smoothly, you'll need the following:
$ git clone https://github.com/hexastack/hexabot.git
```

2. **Install:**

2. **Installation:**
Install node dependencies:
```bash
$ npm install
```
Expand Down
6 changes: 3 additions & 3 deletions cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ program
// Get the last part of the repository name
const repoName = repository.split('/').pop();

// If the repo name starts with "hexabot-channel-", remove that prefix
const extensionName = repoName.startsWith('hexabot-channel-')
? repoName.replace('hexabot-channel-', '')
// If the repo name starts with "hexabot-<TYPE>-", remove that prefix
const extensionName = repoName.startsWith(`hexabot-${type}-`)
? repoName.replace(`hexabot-${type}-`, '')
: repoName;

const extensionPath = path.resolve(
Expand Down

0 comments on commit c0fe6b1

Please sign in to comment.