🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

grammylog

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grammylog

Logging plugin for the grammY framework!

Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

grammYLog

Logging plugin for the grammY framework!


Features

Currently the functionality is basic.

It is designed to log messages received.

In the case of media messages, limited to the text/captions.

Along with user details such as: first name + last name (if available), user ID, and username.

I'll be adding more functions such as admin management as well as support for a log channel soon.

For the future, db integrations are possible to implement persistent logs.


Usage

Simply copy the plugin code from log.js and place it in your grammY project.


If you want to try it out first:
  • Firstly, clone this repo.

  • Then run npm i.

  • Rename .env.example to .env and provide bot token.


Example

To use the example to see out how the plugin works:

node example/echo

Template

A template has been included to get started right away.

To use the template:

node template

Modify it as per your needs.


Contribute

If you'd like to contribute to the project, please read grammY's guide to plugins.


License

MIT ©️ Zubin

FAQs

Package last updated on 25 Mar 2023

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