New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

discord-glitter

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-glitter

Animated text messages for your Discord

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Discord Glitter

🌠🎇 Animated text messages for your Discord server.

Discord Glitter - animated text messages for Discord

As one can imagine, this bot doesn't really work in practice since Discord rate-limits requests to its API. That said, it can yield some nice results for short animations with low frame rate.

Setup & usage

Add Glitter to your npm project:

npm install --save discord-glitter

Create an index.js file with the following contents:

const Glitter = require('discord-glitter');

const glitter = new Glitter({
    token: 'your_secret_token',
    //prefix: '@g', /* Custom prefix for bot commands. */
});

glitter.start();

Activate Glitter by sending a command !g or !g <some string> to any channel of your server. You can specify animation types using !g|<type>, the currently supported types are flash and scan. Example commands:

!g
!g Hello World
!g|scan Beep
!g|flash Boop

Adding custom animations:

If you wanna try to add a custom animation, you'll need to clone this repo and extend lib/frame-generator.js. You will need to add a new key to AnimationTypes object and handle appropriate logic in generateFrames(...).

To run the test instance of the bot, copy test/config.example.json, rename the copy to config.json, input your token and run test/standalone.test.js.

Keywords

FAQs

Package last updated on 01 Dec 2017

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