FrozenCord
A Discord.js command framework.
Installing
To install dev version run: npm install https://github.com/IceeMC/FrozenCord
To install run npm install frozencord
Support
To get support with anything reguarding this framework or d.js you can join the support server here
Features
- Commands - Wether you are making simple commands or complex commands this framework can do it.
- Inhibitors - Wether you want to do command counts or log who ran what command this framework can do that.
- Events - Handle events like a pro in your own event system or in the main file.
- PaginatedMenu - Paginate items with ease no really its that simple.
More coming soon.
Heroku user?
Step 1: Download this repo on your pc/mac.
Step 2: Copy the commands
and inhibitors
directory located in the src
directory to the repo you want the bot in.
Step 3: Push the changes and run the commands below.
- First off run
git add .
- After that then run
git commit -am "Add commands and inhibitors"
- After that then run
git push
Client example:
const { FrozenClient } = require("frozencord");
const client = new FrozenClient({
prefix: "."
withTyping: true
ownerId: ""
readyMessage: (client) => `Ready as ${client.user.tag}`
game: {
name: "cards of humanity",
type: "PLAYING"
}
});
client.login("Token here");
Command example:
const { Command } = require("frozencord");
class CommandName extends Command {
constructor(client) {
super(client);
this.name = "commandName";
this.description = "A command that can do cool stuff.";
this.aliases = [];
this.args = [{
name: "argument",
type: "string",
required: true,
}];
this.botPerms = ["SEND_MESSAGES"];
this.userPerms = [];
this.guildOnly = true;
this.ownerOnly = false;
this.disabled = false;
}
async run(message, [argument]) {
message.channel.send(argument);
}
}
module.exports = CommandName;
Inhibitor example:
const { Inhibitor } = require("frozencord");
class InhibitorName extends Inhibitor {
constructor(client) {
super(client);
this.name = "inhibitorName";
this.description = "A inhibitor that can do cool things.";
}
async run(message, command) {
console.log(`${message.author.tag} ran ${command.name}`);
}
}
module.exports = InhibitorName;
const { PaginatedMenu } = require("frozencord");
const menu = new PaginatedMenu(bot);
menu.setTitle("Example");
menu.setColor(0x000000);
menu.setDescription("Example paginated menu.");
menu.addPages([
{
title: "Page #1 title",
description: "Page #1 description"
},
{
title: "Page #2 title",
description: "Page #2 description"
},
{
title: "Page #3 title",
description: "Page #3 description"
},
{
title: "Page #4 title",
description: "Page #4 description"
}
]);
menu.addPage("Page #5 title", "Page #5 description");
menu.start();