1.3.6 • Published 6 years ago

focabot-core v1.3.6

Weekly downloads
4
License
MIT
Repository
github
Last release
6 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

6 years ago

1.3.5

6 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago