mirror of
https://github.com/sern-handler/handler
synced 2026-06-14 03:42:15 +00:00
59dc1f55f6e172902e3ba0ca61b4e20ae31db3bb
Sern
Sern is making easier to create & automate your discord bot with new version compatibility and full customization.
- A reincarnation of this old project
Installation
npm install sern-handler
yarn add sern-handler
Basic Usage
const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_MEMBERS
]
})
new Sern.Handler( {
client,
prefix,
commands : "dist/commands",
privateServers : [
{
test : true,
id: "server id"
}
],
init: async (handler : Sern.Handler) => {
/* an 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!
Languages
TypeScript
100%