All guides
    messages

    How To Use Functions and Filters in Maki Messages

    Updated 2. 1. 2026

    Maki’s message system allows you to go far beyond static text. By using functions and filters, you can create dynamic, personalized, and context-aware messages that adapt to each user, moment, or situation. These tools are available everywhere variables are supported, including welcome messages, embeds, announcements, automations, and more. Functions generate or transform values (like random numbers or the current time), while filters modify existing text or numbers (such as changing letter case or formatting values). In this guide, you’ll learn how to use all available functions and filters in , with practical examples you can immediately apply in your server.

    Available Functions

    Functions are written using the {function: ...} syntax.

    choose

    Randomly selects one option from a list. Example: {choose: Hey | Hello | Hoi}

    rand

    Generates a random decimal number between 0 and 1. Example: {rand:}

    randint

    Generates a random whole number within a range. Example: {randint: 20..30}

    random

    Generates a random number within a range (legacy-compatible). Example: {random: 10..20} Legacy syntax: {random.12}

    now

    Outputs the current date and time using formatting tokens. Example: {now: %A %d %B %Y %H} Output example: Monday 01 January 2026 14

    Available Filters

    Filters are applied using the pipe (|) operator and can be chained together.

    Text Filters

    upper

    Converts text to uppercase. Example: {user.username | upper}

    lower

    Converts text to lowercase. Example: {THIS IS LOUD | lower}

    title

    Capitalizes the first letter of each word. Example: {this is a lowercase message | title}

    trim

    Removes extra whitespace at the beginning and end of text. Example: { hello | trim}

    length

    Returns the number of characters in a string. Example: Your username length is {user.username | length} characters

    slice

    Extracts part of a string using start and optional end indexes. Example: {user.username | slice(0,1) | upper}{user.username | slice(1,)}

    Numeric Filters

    number

    Formats numbers with thousands separators. Example: Balance: {user.money | number}

    decimal

    Formats a number with decimals. Example: {3.14159 | decimal(2)}

    percent

    Converts a decimal to a percentage. Example: {0.25 | percent}

    default

    Provides a fallback value if the variable is empty or undefined. Example: {user.nickname | default(Anonymous)}

    date

    Formats timestamps into readable dates. Example: {user.created_at | date(%d %B %Y)}

    Plural Filters

    Plural filters help you display grammatically correct messages based on numeric values. Example: {plural: {user.money}, coin, coins} Combined example: Balance: {user.money | number} {plural: {user.money}, coin, coins}

    Putting It All Together

    Here’s a complete example combining multiple functions and filters: {choose: Hey | Hello | Hoi} {user.username | slice(0,1) | upper}{user.username | slice(1,)} 👋 Another example: Today: {now: %A %d %B %Y %H} By combining functions and filters, you can build messages that feel alive, personal, and polished, without writing a single line of code. Experiment with chaining filters and mixing them with functions to unlock the full power of Maki’s message system. If you need help or inspiration, join our support server.

    Ready to try it in your community?

    Add Maki to Discord
    Maki Logomaki

    Jedna Discord aplikace pro celou vaši komunitu, která poroste spolu s vámi.

    Produkt

    FunkcePříkazyPremiumDashboard

    Zdroje

    NávodyCentrum podporyStav služby

    Společnost

    KariéraSmluvní podmínkyZásady používání cookiesKontaktujte nás

    Copyright © 2020 - 2026 Quare CommV. Všechna práva vyhrazena.