DEV Community

Cover image for Botway -  Generate, build, handle and deploy your own bot with your favorite language, for Discord, or Telegram, or Slack.
abdfn
abdfn

Posted on

Botway - Generate, build, handle and deploy your own bot with your favorite language, for Discord, or Telegram, or Slack.

Botway

GitHub logo abdfnx / botway

Generate, build, handle and deploy your own bot with your favorite language, for Discord, or Telegram, or Slack.

Don't forgot to star the repo if you like it

Generate, build, handle and deploy your own bot with your favorite language, for Discord, or Telegram, or Slack.

Demo

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 to host your bot code and database.

Requirements

Installation 漎

NPM

# npm
npm i -g botway

# yarn
yarn global add botway

# pnpm
pnpm add -g botway
Enter fullscreen mode Exit fullscreen mode

Using script

  • Shell
curl -sL https://bit.ly/botway | bash
Enter fullscreen mode Exit fullscreen mode
  • PowerShell
iwr -useb https://bit.ly/bw-win | iex
Enter fullscreen mode Exit fullscreen mode

then restart your powershell

Homebrew

brew install abdfnx/tap/botway
Enter fullscreen mode Exit fullscreen mode

Scoop

scoop bucket add botway https://github.com/abdfnx/botway
scoop install botway
Enter fullscreen mode Exit fullscreen mode

Usage

  • Initialize ~/.botway
  botway init
Enter fullscreen mode Exit fullscreen mode
  botway login
Enter fullscreen mode Exit fullscreen mode
  • Open Botway TUI
  botway
Enter fullscreen mode Exit fullscreen mode
  • Create a new botway project
  botway new <project-name>
Enter fullscreen mode Exit fullscreen mode
  • Manage your bot tokens
  botway tokens <command> [flags] <project-name>
Enter fullscreen mode Exit fullscreen mode
  • Start running your bot
  # Under the project directory
  botway start
Enter fullscreen mode Exit fullscreen mode
  • Manage your bot database
  # Under the project directory
  botway database <command>
Enter fullscreen mode Exit fullscreen mode
  • Deploy and upload project to Railway from the current directory
  # Under the project directory
  botway deploy
Enter fullscreen mode Exit fullscreen mode
  • Run a local command using variables from the active environment
  # Under the project directory
  botway run <command>
Enter fullscreen mode Exit fullscreen mode

Roadmap

You can see the Roadmap

Keyboard shortcuts

  • Up: Move up
  • Down: Move down
  • Tab: Switch windows
  • Ctrl+O: Open bot project at Railway
  • Esc: Reset
  • Ctrl+Q: Quit

Technologies Used in Botway

Special thanks

Thanks to @charmbracelet for thier awesome TUI libraries .

Also thanks to @railwayapp for amazing cloud services 儭.

License

botway is licensed under the terms of MIT license.

thank you for your time and don't forgot to star the repo if you like it

Discussion (0)