This package has been deprecated

Author message:

FocaBotCore was renamed to Azarasi. Please install "azarasi" instead.

focabot-core

1.3.6 • Public • Published

FocaBotCore

A Discord bot framework built on top of Discordie to make bot development easier.

npm install --save focabot-core

Currently, it provides:

  • A command system with built-in prefix and role checking.
  • A module system with hot-reloading.
  • Basic permission system.
  • Built-in audio player (requires FFMPEG).

Example

This is a simple, single-file bot made using FocaBotCore:

const FocaBotCore = require('focabot-core');
 
const myBot = new FocaBotCore({
  prefix: '-',
  token: '[Insert token here]',
});
 
// The classic "ping" command
myBot.commands.register('ping', (msg) => {
  msg.reply('Pong!');
});
 
// Makes the bot repeat something
myBot.commands.register('echo', (msg, text) => {
  msg.channel.sendMessage(text);
});
 
// Connect to discord
myBot.establishConnection();

For a more complex example, check out the example directory.

Bots Using FocaBotCore

If you want to add your bot to the list, feel free to make a PR or contact me on Discord (TheBITLINK#3141).

Package Sidebar

Install

npm i focabot-core

Weekly Downloads

9

Version

1.3.6

License

MIT

Last publish

Collaborators

  • thebitlink