# Introduction

This serves as an introduction to kayo, where you can acquaint yourself with the bot and understand how things operate.

# Syntaxes

In the documentation and on help embeds within the bot, command usage is presented with specific formatting. Notably, arguments wrapped with [] signify optional parameters, while those enclosed in <> indicate required parameters.

Additionally, you may encounter parameters with = after them, such as [param="value"]. This signifies that the parameter is optional, and if no suitable argument is provided, it will default to the specified value.

Certain parameters may require you to pass a specific value from a predefined list. These values will be represented in the command syntax as "value1"|"value2"|..., indicating that any one of those values must be provided.

# Flags

Flags are additional parameters distinguished by the -- prefix to set them apart from other parameters. They are usually optional and are commonly utilized to make minor modifications to specific aspects of the command you're executing.

To use flags, add a flag argument after entering the command name and regular parameters. The flag is placed after everything else, as seen in this example: ;example test 123 --flag value. The flag value can be diverse, accepting anything from strings to numbers and more.

To view the available flags for a command, use the help command. It will include a brief description of each flag, explaining its purpose.

# Scripting

kayo supports creating your own messages for various commands. You can create your own embeds, buttons, or regular messages according to your preferences.

Every command that supports scripting can accommodate both embeds and regular content. You have the option to set whatever you prefer. For regular content, simply pass text without any additional formatting. If you want to add an embed, the content will need to be passed as a component. Refer to the components below for embeds.

Whether you opt for embeds or regular content, both support variables—text enclosed in curly braces {} that you can include in your message. These variables adapt based on the context. For instance, in the welcome command, {user.mention} would mention the user who joined the server.

Variables
#variables

# Embeds

Creating your own embeds is straightforward. Simply use curly braces {}, specify the component name with name:, and include your preferred value in the format {name: value}.

{title: cool embed} {description: this is a description}

The components are: color, author, title, url, description, field, footer, thumbnail, image

Certain components go beyond a single value; you must separate values with && inside the component. This applies to the author, field, and footer components. If no color component is provided, it will default to being invisible.

# Author

{author: name && icon && url}

# Field

{field: name && value && true | false}

The option of true or false is optional, indicating whether the field should be inline; the default is false.

# Footer

{footer: text && icon}

# Buttons

Button parsing functions in the same way as embeds. You can create link buttons that users can click to visit a website. Additionally, you have the option to include an emoji, although this is entirely optional.

{button: name && url && emoji}

# Variables

Variable Example
{user} dr_in
{user.display_name} ethan
{user.mention} @ethan
{user.avatar} https://cdn.discordap././.png
{user.id} 345462882902867969
{user.created_at} 1502435169 (UTC TS)
{user.joined_at} 1696544828 (UTC TS)
Variable Example
{channel} lounge
{channel.mention} #lounge
{channel.id} 1158121624634138655
{channel.created_at} 1702427911 (UTC TS)
Variable Example
{guild} kayo
{guild.id} 1128849931269062688
{guild.owner_id} 767391329226326056
{guild.created_at} 1689209196 (UTC TS)
{guild.member_count} 345
{guild.premium_subscription_count} 29 (Nitro Boosts)
{guild.premium_tier} 3 (Nitro Boost Level)
{guild.icon} https://cdn.discordap././.png
{guild.banner} https://cdn.discordap././.png
{guild.splash} https://cdn.discordap././.png
{guild.vanity_url} https://discord.gg/kayo
{guild.vanity_url_code} kayo

# User

Variable Example
{lastfm} IlllllIIIIlllII
{lastfm.url} https://www.last.fm/user/IlllllIIIIlllII
{lastfm.avatar} https://lastfm.free././.png
{lastfm.scrobbles} 34,939
{lastfm.artists} 1,234
{lastfm.albums} 3,527
{lastfm.tracks} 6,628

# Artist

Variable Example
{artist} Lil Shine
{artist.url} https://www.last.fm/music/Lil+Shine
{artist.image} https://lastfm.free././.png
{artist.plays} 251

# Album

Variable Example
{album} Losing Myself
{artist.url} https://www.last.fm/music/Lil+Shine/Losing+Myself
{artist.image} https://lastfm.free././.png

# Track

Variable Example
{track} Stars
{track.url} https://www.last.fm/music/Lil+Shine/_/Stars
{track.image} https://lastfm.free././.png
{track.plays} 10
{track.spotify} https://open.spotify.com/track/6yhni45iwJjHdB3DoJZG4l
{track.spotify.id} 6yhni45iwJjHdB3DoJZG4l
{track.spotify.duration} 2:14
Variable Example
{disboard} /bump
{disboard.bumps} 274
{disboard.user_bumps} 37

# Channel

Variable Example
{channel} Quan
{channel.id} UC9rs_HRsyjGrF5NOnnOXeig
{channel.url} https://youtube.com././
{channel.avatar_url} https://youtube.com././.png
{channel.banner_url} https://youtube.com././.png
{channel.description} INSTAGRAM @...
{channel.subscribers} 487,000

# Video

Variable Example
{video} 2AM AT WAFFLE HOUSE..
{video.id} p1hXk2_e2DU
{video.url} youtube.com././
{video.thumbnail_url} https://youtube.com././.png
{video.description} ATL MONEY GLITCH..
{video.duration} 33 minutes and 29 seconds
{video.created_at} 1702339200 (UTC TS)
{channel.views} 228,614

# User

Variable Example
{tiktok} friut
{tiktok.id} 6950986009880003589
{tiktok.url} https://www.tiktok.com/@friutsnacks
{tiktok.avatar_url} https://www.tiktok.com././.png
{tiktok.biography} I like to make people mad
{tiktok.username} friutsnacks

# Post

Variable Example
{post} Vlone jacket #friutsn..
{post.id} 7314004562313186606
{post.url} https://www.tiktok.com/@friutsnacks/video/7314004562313186606
{post.statistics} ✨ 27,700 💜 4,787
{post.statistics.comment_count} 95
{post.statistics.like_count} 4,787
{post.statistics.play_count} 27,700
{post.statistics.share_count} 14

# User

Variable Example
{twitter} juju 💸💸
{twitter.id} 1538230472299270144
{twitter.url} https://twitter.com/ayeejuju
{twitter.avatar_url} https://twitter.com././.png
{twitter.screen_name} ayeejuju

# Tweet

Variable Example
{tweet} why this picture of drake look AI generated
{tweet.id} 1736957967977923055
{tweet.url} https://twitter.com/ayeejuju/status/1736957967977923055
{tweet.posted_at} 1702958025 (UTC TS)
{tweet.source} Twitter for iPhone