1.3.6 • Published 7 years ago

focabot-core v1.3.6

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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

1.3.6

7 years ago

1.3.5

7 years ago

1.3.4

8 years ago

1.3.3

8 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago