Socket
Socket
Sign inDemoInstall

xernerx

Package Overview
Dependencies
31
Maintainers
1
Versions
192
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    xernerx

A bot framework for discord.js.


Version published
Weekly downloads
52
increased by10.64%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Discord npm npm Read the Docs npm type definitions node-current wakatime node-current GitHub commit activity (branch)

# About

Xernerx is a class based discord.js framework. [BETA]

It can be customized to be a lightweight handler or a heavy customizable framework that does all the hard work for you

Features

  • Slash command handler
  • Message command handler
  • Context command handler
  • Event handler (with custom Events)
  • Inhibitor handler
  • Extension handler
  • Client Utilities
  • Message Utilities
  • Interaction Utilities
  • Message command handles
  • Extension support
  • ShardClient

Setup

Settings

import XernerxClient from 'xernerx';

new (class Client extends XernerxClient {
	constructor() {
		super([discordOptions], [xernerxOptions]);

		this.connect('token');
	}
})();

Handlers

There are 5 handlers total

  • Command handler, handles message, slash and context commands
  • Event handler, has all the Discord.js events and more
  • Inhibitor handler, handles conditions before commands are ran globally
  • Extension handler, more info here
  • Webhook handler, will allow for top.gg to get your stats (needs a rework)

Extensions

Xernerx supports the ability to use extensions, features not initially included into your code. You can use any extension based on the xernerx-extension-builder package, or make your own with it!

Notes

  • Only compatible with ESM
  • TypeScript and JavaScript support

Keywords

FAQs

Last updated on 17 Mar 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc