1.0.27 • Published 2 years ago

@inficode-devs/inficode.js v1.0.27

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

O tym projekcie:

inficode.js to przystępnie zaprojektowane rozszerzenie do discord.js

Znajdziesz w nim:

  • Uproszczoną wersję Clienta
    • Token oraz prefix bota ustawisz już w deklaracji clienta
    • Nasz client jest wzbogacony o funkcję do wywoływania komend
  • Handler komend oraz eventów
    • Wystarczą 2 linjki żeby twój bot sprawnie czytał pliki komend
  • Lepszą strukture komend
    • Ciesz się podpowiedziami bez dodatkowych linijek kodu

Instalacja:

npm i @inficode-devs/inficode.js

Wymagania

NodeJS - Zalecana wersja: 16.14.0 - Pobierz tutaj

Discord.js - Zalecana wersja: 13.6.0 - Pobierz tutaj

glob - Zalecana wersja: 7.2.0 - Pobierz tutaj

Przykład:

Z inficode.js całą strukturę bota zmieścisz w jednym pliku!

const { Intents } = require('discord.js')
const { Bot, Handler } = require('@inficode-devs/inficode.js')

const bot = new Bot('<PREFIX>', '<TOKEN>', {
    intents: Object.values(Intents.FLAGS)
})

module.exports = bot;

const handler = new Handler(bot)
handler.loadCommands(`${process.cwd()}/Commands/*.js`)
handler.loadEvents(`${process.cwd()}/Events/*.js`)

bot.listen()
bot.start()

A twoje komendy będą czytelne i estetyczne

const { Command } = require('@inficode-devs/inficode.js')

module.exports = new Command({
    name: 'ping',
    run: async ({ client, message, args }) => {
        message.channel.send({ content: `Pong!` })
    }
})

Nasza ekipa:

kameHame HA (not-a-js-dev) - pomysłodawca oraz developer inficode.js

Infinity - dokumentacja JSDocs

1.0.27

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago