Options
All
  • Public
  • Public/Protected
  • All
Menu

fuwa.js

The new way to create progressive Discord bots.

Highlights

  • Express-like syntax
  • Lightweight (only two dependencies)
  • Fast
  • Built-In Command Parser

Quickstart

This assumes you have already setup a discord bot application in Discord. See

$ npm init -y
$ npm i Fuwajs/Fuwa.js
$ echo > index.js

A file called index.js should be in your directory, open that in your IDE of choice and type

const { Client } = require('fuwa');

const client = new Client(
    '?' // Your bot prefix here
);

// replace with your bot token
client.login('<your bot token>');

client.on('READY', () => {
    console.log('I am alive!')
);

client.command(['hi', 'hello'], (req, res) => { 
    res.send(`Hello there, my name is ${client.bot.username}!`); 
});

Check the docs for more in depth examples.

join our discord to interact with our community and ask questions!

Generated using TypeDoc