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

erine

Package Overview
Dependencies
Maintainers
2
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

erine

An advanced OceanicJS-based command framework to create your Discord bots with ease.

  • 1.2.7-adv
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-23.53%
Maintainers
2
Weekly downloads
 
Created
Source

Erine Advanced

An advanced OceanicJS-based command framework to create your Discord bots with ease.

Install

npm i erine@adv

Basic setup

import { Erine } from 'erine';

const bot = new Erine({
    auth: 'Bot ' + 'BOT TOKEN HERE',
    gateway: {
        intents: [
            'GUILDS',
            'GUILD_MESSAGES',
            'MESSAGE_CONTENT'
        ]
    },
    prefix: 'BOT PREFIX HERE'
});

bot.connect();

JavaScript setup guide

This package can be used with JavaScript but babel is needed.

Install the following package with this command

npm install --save-dev @babel/plugin-proposal-decorators @babel/cli @babel/core @babel/preset-env

Create a new .babelrc file and paste the following config

{
  "presets": ["@babel/preset-env"],
  "plugins": [
    ["@babel/plugin-proposal-decorators", {"legacy": true}],
    ["@babel/plugin-proposal-class-properties", {"loose": true}],
    ["@babel/plugin-proposal-private-property-in-object", {"loose": true}],
    ["@babel/plugin-proposal-private-methods", {"loose": true}]
  ]
}

Add the following script to your package.json

"build": "babel src -d dist"

"src" and "dist" depends on how you named your source and distribution folders respectively. Run this script to transpile the JS src to a global-compatible one.

Now run your distribution folder!

$ npm run build
$ node dist/index.js
  • Documentation
  • Guide
  • Support Server

Keywords

FAQs

Package last updated on 24 Dec 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

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