focabot-core

Useful framework to make discord bots

FocaBotCore was renamed to Azarasi. Please install "azarasi" instead.
Last updated 3 years ago by thebitlink .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install focabot-core 
SYNC missed versions from official npm registry.

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).

Current Tags

  • 1.3.6                                ...           latest (3 years ago)

21 Versions

  • 1.3.6 [deprecated]           ...           3 years ago
  • 1.3.5 [deprecated]           ...           3 years ago
  • 1.3.4 [deprecated]           ...           3 years ago
  • 1.3.3 [deprecated]           ...           3 years ago
  • 1.3.2 [deprecated]           ...           3 years ago
  • 1.3.1 [deprecated]           ...           3 years ago
  • 1.3.0 [deprecated]           ...           3 years ago
  • 1.2.3 [deprecated]           ...           3 years ago
  • 1.2.2 [deprecated]           ...           3 years ago
  • 1.2.1 [deprecated]           ...           3 years ago
  • 1.2.0 [deprecated]           ...           3 years ago
  • 1.1.3 [deprecated]           ...           3 years ago
  • 1.1.2 [deprecated]           ...           4 years ago
  • 1.1.1 [deprecated]           ...           4 years ago
  • 1.1.0 [deprecated]           ...           4 years ago
  • 1.0.5 [deprecated]           ...           4 years ago
  • 1.0.4 [deprecated]           ...           4 years ago
  • 1.0.3 [deprecated]           ...           4 years ago
  • 1.0.2 [deprecated]           ...           4 years ago
  • 1.0.1 [deprecated]           ...           4 years ago
  • 1.0.0 [deprecated]           ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (5)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |