2022-02-14 16:45:44 +03:00
2022-02-13 21:44:32 +03:00
2022-02-13 22:39:51 -06:00
2022-02-13 22:37:38 -06:00
2022-01-24 20:48:18 -06:00
2022-01-30 21:02:16 -06:00
2022-01-25 22:23:17 -06:00
2022-02-13 22:13:27 +03:00
2022-02-13 21:55:17 +03:00
2022-02-12 08:54:02 +03:00
2022-02-13 17:46:58 +03:00
2022-02-14 16:45:44 +03:00
2022-02-07 23:55:16 -06:00

Sern

Sern is making easier to create & automate your discord bot with new version compatibility and full customization.

Installation

npm install sern-handler
yarn add sern-handler

Basic Usage

TypeScript or JavaScript

import { Client, Intents } from 'discord.js';
import { Handler } from 'sern-handler';
import { prefix, token } from '../src/secrets.json';

const client = new Client({
    intents: [
        Intents.FLAGS.GUILDS,
        Intents.FLAGS.GUILD_MESSAGES,
        Intents.FLAGS.GUILD_MEMBERS
    ]
});

// Access handler anywhere
client.handler = new Handler({
    client,   
    prefix,   
    commands : 'dist/commands', 
    privateServers : [           
        {
            test : true,
            id: 'server-id'
        }
    ],
    init: async (handler : Sern.Handler) => {
        // Optional function to initialize anything else on bot startup
    },
});


client.login(token);

Links

Contribute

  • Pull up on issues and tell me if there are bugs.
  • Check issues.
  • Any contributions are open to suggestion!
Description
No description provided
Readme MIT 8.4 MiB
Languages
TypeScript 100%