Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
update README, add new task, update releasing tools, bump to 0.1.01
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Jun 7, 2022
1 parent 24b92f4 commit 6083429
Show file tree
Hide file tree
Showing 5 changed files with 176 additions and 7 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:

env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
GITHUB_ACTIONS_NAME: "github-actions[bot]"
GITHUB_ACTIONS_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"

permissions: write-all

Expand All @@ -33,8 +35,24 @@ jobs:
with:
install-only: true

- name: Set up Tag
id: ghtag
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: Set up Build Info
run: task setup

- name: Build
run: task release
run: |
task release
task upload-scoop-manifest
git config --local user.email "${{ env.GITHUB_ACTIONS_EMAIL }}"
git config --local user.name "${{ env.GITHUB_ACTIONS_NAME }}"
git diff --cached
git add .
git commit -m "Scoop update for botway version ${TAG}"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
9 changes: 9 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ brews:
description: "🤖 Generate, build, handle and deploy your own bot with your favorite language, for Discord, or Telegram, or Slack"
license: MIT

scoop:
url_template: "https://github.com/abdfnx/botway/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
bucket:
owner: abdfnx
name: botway
homepage: "https://botway.web.app"
description: "🤖 Generate, build, handle and deploy your own bot with your favorite language, for Discord, or Telegram, or Slack"
license: MIT

checksum:
name_template: "checksums.txt"

Expand Down
148 changes: 143 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,145 @@
---
### 🚧 Under development 🚧
---
<p align="center">
<a href="https://botway.web.app" target="_blank">
<img src="https://cdn-botway.up.railway.app/botway.svg" alt="Botway" width="300">
</a>
</p>

# botway
> 🤖 Generate, build, handle and deploy your own bot with your favorite language, for Discord, or Telegram, or Slack.
🤖 Generate, build, handle and deploy your own bot with your favorite language, for Discord, or Telegram, or Slack.
With botway, you can focus on your bot's logic and don't worry about the infrastructure. and we will take care of the rest.

Botway uses [Railway][rw] to host your bot code and database.

## Requirements

- [**Railway Account**][rw]

## Installation ⬇

### Using script

- Shell

```bash
curl -sL https://bit.ly/botway | bash
```

- PowerShell

```powershell
iwr -useb https://bit.ly/bw-win | iex
```

**then restart your powershell**

### Homebrew

```
brew install abdfnx/tap/botway
```

### Scoop

```
scoop bucket add botway https://github.com/abdfnx/botway
scoop install botway
```

## Usage

* Initialize `~/.botway`

```bash
botway init
```

* Authenticate with [**Railway**][rw]

```bash
botway login
```

* Open Botway TUI

```bash
botway
```

* Create a new botway project

```bash
botway new <project-name>
```

* Manage your bot tokens

```bash
botway tokens <command> [flags] <project-name>
```

* Start running your bot

```bash
# Under the project directory
botway start
```

* Manage your bot database

```bash
# Under the project directory
botway database <command>
```

* Deploy and upload project to [**Railway**][rw] from the current directory

```bash
# Under the project directory
botway deploy
```

* Run a local command using variables from the active environment

```bash
# Under the project directory
botway run <command>
```

## Roadmap

> You can see the [**Roadmap**](https://github.com/users/abdfnx/projects/10)
## Keyboard shortcuts

- <kbd>Up</kbd>: **Move up**
- <kbd>Down</kbd>: **Move down**
- <kbd>Tab</kbd>: **Switch windows**
- <kbd>Ctrl+O</kbd>: **Open bot project at Railway**
- <kbd>Esc</kbd>: **Reset**
- <kbd>Ctrl+Q</kbd>: **Quit**

### Technologies Used in Botway

- [**Railway API**][rw]
- [**Charm**](https://charm.sh)
- [**Cobra**](https://github.com/spf13/cobra)
- [**Viper**](https://github.com/spf13/viper)
- [**GJson**](https://github.com/tidwall/gjson)
- [**Termenv**](https://github.com/muesli/termenv)
- [**Boa**](github.com/elewis787/boa)

## Special thanks ❤

Thanks to [**@charmbracelet**](https://github.com/charmbracelet) for thier awesome TUI libraries 🏗.

Also thanks to [**@railwayapp**](https://github.com/railwayapp) for amazing cloud services ☁️.

### License

botway is licensed under the terms of [MIT](https://github.com/abdfnx/botway/blob/main/LICENSE) license.

## Star History

[![Star History Chart](https://api.star-history.com/svg?repos=abdfnx/botway&type=Date)](https://star-history.com/#abdfnx/botway)

[rw]: https://railway.app
4 changes: 4 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@ tasks:
remove-docker-images:
cmds:
- docker rmi $(docker images -a -q)

upload-scoop-manifest:
cmds:
- rm botway.json && cp ../dist/botway.json .
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "botway",
"version": "0.1.0-beta.7",
"version": "0.1.01",
"description": "🤖 Generate, build, handle and deploy your own bot with your favorite language, for Discord, or Telegram, or Slack.",
"type": "module",
"author": "abdfnx",
Expand Down

0 comments on commit 6083429

Please sign in to comment.