7945cord
v1.1.1
Published
A lightweight Discord library.
Readme
🚀 7945cord v4.0 - Advanced Documentation
7945cord is a flexible, lightweight framework designed to give developers full control over their Discord bots.
⚡ Case Insensitivity
As of v4.0, all functions and commands are case-insensitive.
%FUNC.PING()==%func.ping()!HELP==!help
💾 Extended Variable System
All data retrieval is now centralized under the %get. tag.
Data Retrieval (Getters)
The %get.key structure retrieves both context data (message, channel, server) and stored variables.
Reserved System Keys:
%get.msg: Returns all arguments.%get.msg(n): Returns the n-th argument.%get.author: Username of the sender.%get.authorid: ID of the sender.%get.guildidor%get.serverid: Server ID.%get.channelid: Channel ID.%get.botid: Bot's own ID.
Data Assignment (Setters)
%set.var(key, value): Sets a variable in the current context (Server+User).%set.UserVar(key, value, userId, guildId): Sets data for a specific user in a server.%set.ServerVar(key, value, guildId): Sets server-wide data.%set.tempVar(key, value): Sets a session-only temporary variable.
🛠️ Extensibility
Custom Functions
bot.function("add", (ctx, args) => {
return (parseInt(args[0]) + parseInt(args[1])).toString();
});Commands and Aliases
bot.command({
name: "help",
aliases: ["h", "info"],
code: "Help content..."
});7945cord - "Infrastructure for infrastructure, control is in your hands."
