Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@grammyjs/create-grammy

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grammyjs/create-grammy

create grammY bots with one command

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

📖 Introduction

Create grammY apps with one command. Inspired and original code by create-discordx.

ℹ How it works

After starting cli, you will be prompted to select your platform, your favorite package manager, and even dockerfiles, if you so choose.

It will then download the files you want.

💻 Usage

Node

npx @grammyjs/create-grammy

Or

npm init @grammyjs/grammy

Deno

To always use the latest version, the prefetching way to start:

deno run --unstable --allow-env --allow-read --allow-write --allow-net --allow-run -r https://deno.land/x/create_grammy/src/index.ts

Or

deno install --unstable --allow-env --allow-read --allow-write --allow-net --allow-run -r -n create-grammy https://deno.land/x/create_grammy/src/index.ts

create-grammy

➕ Adding own template

If you plan add template into this repository

  1. Fork the repository
  2. Clone your own repository
  3. In your forked repository, make your changes in a new git branch:
    git checkout -b my-branch main
    
  4. Create your template in templates/{PLATFORM} directory
  • We would like you to create templates for both platforms, if it's possible
  • Node template should contain entrypoint as src/index.ts
  • Deno template should contain entrypoint as src/mod.ts
  • By default we ship own Dockerfile, but you can write own one
  • For node we already have needed tsconfig.json, so you don't need to write this
  • For node leave name in package.json empty, because this field is automatically created at the stage of template installation
  1. Push your branch to GitHub:

    git push origin my-branch
    
  2. In GitHub, send a pull request to create-grammy:main.

If you have own repository with template

In this case we will mount your template as git submodule. Please, open issue with choosed Connect my own template option.

Keywords

FAQs

Package last updated on 25 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc