Skip to content

Zack-911/EdexBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ForgeScript TypeScript Template

A modern TypeScript template for creating Discord bots with ForgeScript, featuring a clean project structure and development tools.

✨ Features

  • TypeScript Support: Full TypeScript support with strict type checking
  • Modern ES Modules: Built with ES modules for better code organization
  • Pre-configured Build System: Ready-to-use build scripts
  • Developer Tools: Includes useful developer commands
  • SQLite Database: Integrated with ForgeDB for data persistence
  • Canvas Support: Includes ForgeCanvas for image manipulation

🚀 Getting Started

Prerequisites

  • Node.js 18+ (recommended: latest LTS version)
  • npm or yarn package manager
  • Git

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/forge-typescript-template.git
    cd forge-typescript-template
  2. Install dependencies:

    npm install
    # or
    yarn install
  3. Create a .env file in the root directory with your bot token:

    TOKEN=your_discord_bot_token_here

Development

  • Build the project:

    npm run build
    # or
    yarn build
  • Start the bot:

    npm start
    # or
    yarn start
  • Start the bot in development mode:

npm run dev
# or
yarn dev

🏗️ Project Structure

├── src/
│   ├── commands/         # Text commands
│   ├── slash/            # Slash commands
│   └── index.ts          # Main bot entry point
├── database/             # Database files
├── dist/                 # Compiled JavaScript
├── .env                  # Environment variables
├── package.json          # Project dependencies
└── tsconfig.json         # TypeScript configuration

📝 Available Scripts

  • npm run build or yarn build: Compiles TypeScript to JavaScript
  • npm start or yarn start: Builds and runs the bot
  • npm run dev or yarn dev: Builds and runs the bot in development mode

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

💡 Support

For support, please open an issue on the GitHub repository.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors