Skip to content

swiftcast/bee-booot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bee Booot

This is a Discord bot using the sapphire framework written in TypeScript.

How to use it?

Prerequisite

npm install

Development

This example can be run with tsc-watch to watch the files and automatically restart your bot.

npm run watch:start

Production

You can also run the bot with npm dev, this will first build your code and then run node ./dist/index.js. But this is not the recommended way to run a bot in production.

Building and Running in PM2

  1. Build Your TypeScript Code:

    Compile your TypeScript code to JavaScript:

    npx tsc
  2. Run with PM2:

    Use PM2 to run the compiled JavaScript file:

    pm2 start dist/index.js --name typescript-bot
  3. Save and Auto-Restart:

    Save your PM2 process list and configure it to restart on system reboots:

    pm2 save
    pm2 startup

License

Dedicated to the public domain via the Unlicense, courtesy of the Sapphire Community and its contributors.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published