LittleSpace Network Developers
Sign in

Build bots for littlespace.chat

A small JavaScript library and a set of guides for writing bots on LittleSpace Network. If you’ve made a Discord bot before, you already know most of it.

Make your first bot
npm install @littlespace/fluxkit
bot.js
import { FluxerClient } from '@littlespace/fluxkit';

const bot = new FluxerClient({
  instance: 'https://littlespace.chat',
  token: process.env.FLUXER_TOKEN,
});

bot.command('roll', ({ reply, args }) => {
  const sides = Number(args[0] ?? 6);
  const n = Math.ceil(Math.random() * sides);
  return reply(`🎲 ${n}`);
});

await bot.login();

Where to go next

What bots can do on Fluxer today

Works now

  • Reading every message the bot can see, with no intents to request
  • Prefix commands like !roll and @bot help
  • Replies, embeds, reactions, DMs and webhooks
  • Kicks, bans, timeouts, roles and the audit log

Not on Fluxer yet

  • Slash commands in the / menu
  • Buttons, select menus and pop-up forms
  • Bots in voice channels (untested)

When Fluxer adds these, fluxkit will support them. More on the differences