LittleSpace Network Developers
Sign in

Introduction

fluxkit is a JavaScript library for writing bots on LittleSpace Network. It handles connecting to littlespace.chat, staying connected, rate limits and commands, so your code only has to say what the bot does.

JavaScript
import { FluxerClient } from '@littlespace/fluxkit';

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

bot.command('hug', ({ reply, message }) => reply(`*hugs ${message.author.username}* 🧸`));

await bot.login();

#What Fluxer is

littlespace.chat runs on Fluxer, an open-source chat app that works a lot like Discord: communities, channels, roles, DMs and bots. Its bot API is close to Discord’s, so most of what you know carries over.

fluxkit is a community library. It isn’t made by Fluxer, and it’s written for littlespace.chat first, though it works with any Fluxer instance.

#What you’ll need

  • Node.js 18 or newer
  • A littlespace.chat account
  • A community where you can add bots, or permission to ask an owner to add yours

#Where to start