An advanced OceanicJS-based command framework to create your Discord bots with ease.
npm i erine@adv
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();
This package can be used with JavaScript but babel is needed.
npm install --save-dev @babel/plugin-proposal-decorators @babel/cli @babel/core @babel/preset-env
{
"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}]
]
}
"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.
$ npm run build
$ node dist/index.js
Generated using TypeDoc