beginner
Scripts in Engar are the fundamental way to configure most functions.
Syntax
The basis of scripts consists of the characters {
and }
. They are used to invoke functions and variables. For example, {user}
. Attributes are obtained after a dot (.) as an example {user.id}
. Function values are passed after a colon (:) as an example {if:1==1}
.
user
User related variables.
User variables can be also accessed by using "target" variable with the same attributes. calling it with a query to search will retrieve information about target query user. ex. {target.id:engar}
Variable | Output |
---|---|
user | engar#5616 |
user.nick | engar |
user.display_name | engar |
user.id | 467982060854706176 |
user.avatar | /avatars/467982060854706176/dea5c2c75cd... |
user.created | 1541877256 |
user.status | online |
user.banner | /banners/.../... |
user.mutual_guilds | 56 |
user.mention |
|
user.has_permissions | true |
user.has_role | true |
guild
Guild related variables for gathering basic information about the current discord server.
Variable | Output |
---|---|
guild | engarcord |
guild.id | 750122220147310683 |
guild.icon | /icons/750122220147310683/dea5c2c75cd42382... |
guild.banner | /banners/750122220147310683/d71da3f3b23... |
guild.splash | /splashes/750122220147310683/881e023c78dccf42... |
guild.owner_id | 563718132863074324 |
guild.boosts | 15 |
guild.boost_level | 3 |
guild.created | 1598913473 |
guild.members | 1989 |
guild.humans | 1974 |
guild.bots | 15 |
guild.roles | 45 |
guild.channels | 30 |
guild.emojis | 169 |
lastfm
Last.fm related variables related for custom last.fm mode
Variable | Output |
---|---|
lastfm.name | user |
lastfm.url | /user/yourusername |
lastfm.scrobbles | 12314 |
lastfm.playlists | 4 |
lastfm.artists | 2000 |
lastfm.image | lastfm.freetls.fastly.net/i/u/300x300/5a3... |
lastfm.tracks | 3144 |
lastfm.albums | 325 |
lastfm.created_at | 123142134 |
track.title | Dead Memories |
track.url | www.last.fm/music/Slipknot/_/Dead+Memories |
track.image | lastfm.freetls.fastly.net/i/u/300x300/b05a013bb6... |
track.plays | 149 |
track.listeners | 123456 |
track.totalplaycount | 1234567 |
album.name | All Hope Is Gone |
album.url | www.last.fm/music/Slipknot/All+Hope+Is+Gone |
album.image | lastfm.freetls.fastly.net/i/u/300x300/b05a013bb6... |
album.plays | 456 |
artist.name | Slipknot |
artist.url | www.last.fm/music/Slipknot |
artist.image | lastfm.freetls.fastly.net/i/u/300x300/b05a013bb6... |
artist.plays | 2131 |
embed
Function | Example |
---|---|
embed.title | {embed.title:text} |
embed.description | {embed.description:text} |
embed.color | {embed.color:#2f3136} |
embed.url | {embed.url:https://example.com} |
embed.image | {embed.image:https://example.com/image.png} |
embed.thumbnail | {embed.thumbnail:https://example.com/image.png} |
embed.footer | {embed.footer:text&& (optional icon) https://example.com/image.png} |
embed.author | {embed.author:text&& (optional icon) https://example.com/image.png && (optional url) https://example.com} |
embed.field | {embed.field:name&& value&& (optional is inline) true/false} |
embed.timestamp | {embed.timestamp:(optional unix timestamp)} |
reactions
Function | Example | Description |
---|---|---|
react | {react::wave:} | Adds reaction to your message |
react.pass | {react.pass::wave:} | Adds reaction to bot message |
Last updated