Nuclear Power Manager

    @ghom/nano-bot
    TypeScript icon, indicating that this package has built-in type declarations

    1.10.12-beta • Public • Published

    nano banner

    GitHub forks GitHub stars GitHub watchers

    Nano (なの) Core

    GitHub top language GitHub search todo GitHub repo size GitHub issues

    A Discord bot core in TypeScript

    Dependencies

    better-sqlite3 chalk discord.js dotenv enmap

    Usage

    1. Install

    • npm i nano-bot

    2. Prepare

    • Make .env file with TOKEN=YOUR_TOKEN on your root project folder.

    3. Import

    import "@ghom/nano-bot"
    require("@ghom/nano-bot")

    4. Code in TypeScript

    • Please use Nano.Embed class to make embeds.
    • Add your own modules in src/modules/.
    • Check the existing modules for examples.
    • The Discord client is in the Nano.Globals object as client.
    • The ApplicationClient is fetched in the Nano.Globals object as bot.

    5. Scripts explanation

    {
      // Prettify the code automatically on build or push action.
      prettier: "prettier src --write",
    
      // Create the local "dist" runnable folder for deployment.
      build: "git rm -r --ignore-unmatch -f ./dist && npm run prettier && tsc",
    
      // Build and start directly the bot for debugging.
      start: "npm run build && node .",
    }

    6. Future features

    • Implement hot reloading with Gulp.

    Install

    npm i @ghom/nano-bot

    DownloadsWeekly Downloads

    3

    Version

    1.10.12-beta

    License

    ISC

    Unpacked Size

    684 kB

    Total Files

    70

    Last publish

    Collaborators

    • ghom