@_rewe/annoiler

1.16.3 • Public • Published

Annoiler Package

This is a simple package to implent an annoil command in your discord bot without much code. An annoiler is text in with every letter is put in an extra spoiler.

Note that emojis, mentions and channel mentions are not supported. They will be sent as their string, while default emojis are not hidden at all. Note: Although it supports many special characters, it's impossible to support all of them, so only common used special characters are supported

Installation

v1.16.0

npm i @_rewe/annoiler

Usage

Basic example (e.g. to use with an already implented eval command):

const annoiler = require('@_rewe/annoiler')

message.channel.send(annoiler.translate('Some Text'))

Basic example with @everyone ping:

const annoiler = require('@_rewe/annoiler')

message.channel.send(annoiler('Some Text'))

More advanced annoil command example:

const annoiler = require('@_rewe/annoiler')

run : async(client, message, args) => {
        const text = args.join(" ");
        if(!text) return message.reply('You have to write some text to add annoilers!');
        message.channel.send(annoiler.translate(`${text}`));
        message.delete()
    }

Changelog

1.16.3:
- Updated README.md
- Added some special characters
- Fixed a bug where underscores are replaced with hashtags

Readme

Keywords

Package Sidebar

Install

npm i @_rewe/annoiler

Weekly Downloads

15

Version

1.16.3

License

MIT

Unpacked Size

6.75 kB

Total Files

7

Last publish

Collaborators

  • _rewe