2022.706.0 • Published 2 years ago

givies-framework v2022.706.0

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

Givies-Framework

Discord Server CI CodeFactor NPM Release

A framework to facilitate the development of Discord bots using Eris.

Design Features

This framework includes amazing features such as:

  • Giveaways
  • Utility Classes
    • Logger
    • RichEmbed Constructor
    • and more...

Developing a Discord bot using Givies-Framework

To start developing a Discord bot, you may first initialize a new NodeJS project and install the necessary dependencies. Here's a simple steps how to get done:

  • Initialize a NodeJS project: npm init -y
  • Install Givies-Framework and Eris: npm install eris givies-framework
  • Open your project using any suitable code editor

Code Example:

Below is a very basic example how it works in JavaScript.

const Eris = require("eris");
const GiviesFramework = require("givies-framework");

const client = new Eris.Client("Bot <BOT_TOKEN>", {
    intents: [
        "guilds",
        "guildMessages"
    ]
});
const logger = new GiviesFramework.Utils.Logger();

client.on("ready", () => {
    logger.info({ message: `${client.user.username} is Ready`, subTitle: "Discord::Ready", title: "ERIS" });
});

client.on("messageCreate", async (message) => {
    if (message.author.bot) return;

    if (message.content === "!ping") {
        const embed = new GiviesFramework.Utils.RichEmbed();
            .setTitle("Bot's ping")
            .setDescription(`Pong! | ${message.member.guild.shard.latency}ms`)
            .setColor(0x7289DA);

        return client.createMessage(message.channel.id, { embed: embed });
    }
});

client.connect();

Contributing

Any contributions can be made via pull requests.

If you are confused where to get started, the issue-tracker is the best place to track any current existing issues.

Note: Please make sure to follow its Contributing Guidelines before proceeding.

License

This framework is released under the MIT License.

2022.704.0

2 years ago

2022.704.1

2 years ago

2022.706.0

2 years ago

2022.606.0

2 years ago

2022.606.1

2 years ago

2022.604.0

2 years ago

2022.418.0

2 years ago

2022.315.10

2 years ago

2022.315.11

2 years ago

2022.418.1

2 years ago

2022.414.0

2 years ago

2022.414.1

2 years ago

2022.411.0

2 years ago

2022.315.7

2 years ago

2022.315.8

2 years ago

2022.315.9

2 years ago

2022.315.3

2 years ago

2022.315.4

2 years ago

2022.3.14

2 years ago

2022.315.5

2 years ago

2022.315.6

2 years ago

2022.315.0

2 years ago

2022.314.1

2 years ago

2022.315.1

2 years ago

2022.315.2

2 years ago

2022.408.0

2 years ago

2022.407.1

2 years ago

2022.406.2

2 years ago

2022.407.2

2 years ago

2022.406.0

2 years ago

2022.407.0

2 years ago

2022.406.1

2 years ago

2022.327.7

2 years ago

2022.327.6

2 years ago

2022.327.1

2 years ago

2022.327.0

2 years ago

2022.327.5

2 years ago

2022.327.4

2 years ago

2022.327.3

2 years ago

2022.327.2

2 years ago

2022.2.6

2 years ago

0.1.0-310122

2 years ago

0.1.0-dev.2

2 years ago

0.1.0-dev.1

2 years ago

0.1.0-dev

2 years ago

0.1.0

2 years ago