Skip to content

secondubly/FutabaBot

Repository files navigation

FutabaBot

A personal use discord bot written by myself. Built on top of the sapphire framework and written in TypeScript.

How to use it?

TODO

Prerequisites

npm install

Development

You have two options for development with this bot. You may choose to use the Docker setup (recommended) or develop directly via your IDE/editor of choice. Please note that support for developing outside of Docker may be limited. Instructions for each are as follows:

Docker

  1. Create a discord application and be sure to note down your application token.
  2. In the src/ directory, copy the existing .env.development and rename it to .env.development.local file (IMPORTANT: The existing .gitignore rules should prevent this file from being committed but make sure not to commit any sensitive information!)
  3. Fill out the empty fields with the appropriate information, namely the Discord IDs of the bot owners and your discord application token.
  4. Run docker compose --env-file src/.env.development.local up in the terminal where the bot is located. (If you want to get access to your DB information in a browser, you can run docker compose --env-file src/.env.development.local --profile dev up)
  5. After a bit of time, all the relevant containers should be setup and running!
  • If running the dev profile, you can access your Prisma Studio instance via http://localhost:5555 - the login information is in .env.development.local

Non-Docker

Note: These steps assume you have an installed and running PostgreSQL server

  1. Create a discord application and be sure to note down your application token.
  2. In the src/ directory, copy the existing .env.development and rename it to .env.development.local file (IMPORTANT: The existing .gitignore rules should prevent this file from being committed but make sure not to commit any sensitive information!)
  3. Fill out the empty fields with the appropriate information, namely the Discord IDs of the bot owners and your discord application token. (IMPORTANT: Make sure to change the postgres section of the database url in DATABASE_URL to localhost)
  4. Run npm install
  5. From the bot parent directory, run npm run prisma dev migrate dev
  6. You can run the bot now in two ways:
    • If you wish to watch the repository files and automatically restart the bot when any are changed, run npm run watch:start
    • If you wish to just run the bot, run npm run dev

I have included VS Code files for ease-of-use as well.

Production

TODO

License

This project uses the MIT License.

About

personal use discord bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages