Returns the output of custom JavaScript code using Fossabot’s own JavaScript engine.
This variable is heavily limited to prevent abuse!The maximum execution time of your code may not exceed 50ms, and there is a limit of one evaluation per action(command, keyword, or timer).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Fossabot","colors":{"primary":"#3e8eed","light":"#3e8eed","dark":"#3e8eed"},"logo":{"light":"https://mintcdn.com/fossadev/9ND0fVWu53o1D_5a/img/logo.svg?fit=max\u0026auto=format\u0026n=9ND0fVWu53o1D_5a\u0026q=85\u0026s=f5e76ffec0fa0bf307a4ed7c29f54aa4","dark":"https://mintcdn.com/fossadev/9ND0fVWu53o1D_5a/img/logo-dark.svg?fit=max\u0026auto=format\u0026n=9ND0fVWu53o1D_5a\u0026q=85\u0026s=1a63e6285681d4908fea8f1f86a3445c","href":"https://fossabot.com"},"favicon":"https://mintcdn.com/fossadev/CPTmXSRcXIGlG-eS/img/favicon.ico?fit=max\u0026auto=format\u0026n=CPTmXSRcXIGlG-eS\u0026q=85\u0026s=f94eace8249d3ec99229c841c62c7058","footer":{"socials":{"x":"https://x.com/Fossabot","discord":"https://fossabot.com/discord"},"links":[{"header":"Stay Connected","items":[{"label":"Twitch","href":"https://twitch.tv/Fossabot"},{"label":"Discord","href":"https://fossabot.com/discord"},{"label":"X","href":"https://x.com/Fossabot"}]},{"header":"More","items":[{"label":"Terms of Service","href":"https://fossabot.com/pages/terms"},{"label":"Privacy Policy","href":"https://fossabot.com/pages/privacy"}]}]},"contextual":{"options":["copy","view","chatgpt","claude","grok"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fossadev","hasAudioNarration":false,"actualSubdomain":"fossadev","customDomains":["fossabot.com"],"gitSource":{"type":"github","owner":"fossadev","repo":"fossabot-docs","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae6d2d262ef36be88633ede","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"Variables","count":55},{"language":"default","tag":"Commands","count":44},{"language":"default","tag":"Management","count":13},{"language":"default","tag":"Documentation","count":13},{"language":"default","tag":"Channel \u0026 Stream","count":13},{"language":"default","tag":"Utilities","count":12},{"language":"default","tag":"Features","count":11},{"language":"default","tag":"Message \u0026 Arguments","count":10},{"language":"default","tag":"Integrations","count":9},{"language":"default","tag":"Media Request","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"variables/eval","slug":"/variables/eval","pageMetadata":{"title":"$(eval)","description":null,"href":"/variables/eval"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Returns the output of custom `,_jsx(_components.a,{href:`https://wikipedia.org/wiki/JavaScript`,children:_jsx(_components.strong,{children:`JavaScript`})}),` code using Fossabot’s own JavaScript engine.`]}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`This variable is heavily limited to prevent abuse!`})}),_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`maximum`}),` execution time of your code may not exceed `,_jsx(_components.strong,{children:`50ms`}),`, and there is a limit of `,_jsx(_components.strong,{children:`one`}),` evaluation `,_jsx(_components.strong,{children:`per action`}),` `,_jsx(_components.em,{children:`(command, keyword, or timer)`}),`.`]})]}),`\n`,_jsx(Heading,{level:`4`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(_components.p,{children:[`This variable takes `,_jsx(_components.strong,{children:`one`}),` `,_jsx(_components.em,{children:`required`}),` parameter that is `,_jsx(_components.strong,{children:`JavaScript code`}),` to be executed.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Please be aware of the following:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`All code has to be wrapped in `,_jsx(_components.strong,{children:`double quotes`}),`, example: `,_jsx(_components.code,{children:`$(eval \"123 + 456\")`})]}),`\n`,_jsxs(_components.li,{children:[`Only `,_jsx(_components.strong,{children:`single quotes`}),` can be used to indicate a string, example: `,_jsx(_components.code,{children:`$(eval \"var test='hello world';test\")`})]}),`\n`,_jsxs(_components.li,{children:[`Both `,_jsx(_components.code,{children:`\"`}),` and `,_jsx(_components.code,{children:`\\\\`}),` have to be escaped `,_jsx(_components.strong,{children:`thrice`}),` when used within a string, example: `,_jsx(_components.code,{children:`$(eval \"'Félix \\\\\\\\\\\\\"xQc\\\\\\\\\\\\\" Lengyel'\")`})]}),`\n`,_jsxs(_components.li,{children:[`Special characters have to be escaped `,_jsx(_components.strong,{children:`twice`}),`, example: `,_jsx(_components.code,{children:`$(eval \"'1 (blabla) 3'.replace(/\\\\\\\\(.*\\\\\\\\)/, '2')\")`})]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-usage`,children:`Example Usage`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`A simple command with the name `,_jsx(_components.code,{children:`!sum`}),` and a response of the following:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`$(eval \"$(index1) + $(index2)\")`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`If triggered by `,_jsx(_components.code,{children:`!sum 123 456`}),`, would return the following response:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`579`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`A more advanced command, a recreation of `,_jsx(_components.code,{children:`!uptime`}),`, with a response of the following:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\"$(eval \\\"var cname='$(channel.login)';var sname='$(sender.login)';var utime=`$(uptime)`; `${utime}` !== '[Error: Stream is offline.]' ? `${(sname === cname ? 'You have been' : cname + ' has been')} live for ${utime}.` : `${(sname === cname ? 'Your' : 'The')} stream is currently offline.`\\\")\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`If triggered in your `,_jsx(_components.em,{children:`own channel`}),` while you are `,_jsx(_components.em,{children:`offline`}),`, would return the following response:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Your stream is currently offline.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`If triggered in your `,_jsx(_components.em,{children:`own channel`}),` while you are `,_jsx(_components.em,{children:`online`}),`, would return the following response:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`You have been live for 1 hour and 21 minutes.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`If triggered in `,_jsx(_components.em,{children:`Aiden’s channel`}),` while he is `,_jsx(_components.em,{children:`offline`}),`, would return the following response:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`The stream is currently offline.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`If triggered in `,_jsx(_components.em,{children:`Aiden’s channel`}),` while he is `,_jsx(_components.em,{children:`online`}),`, would return the following response:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`aiden has been live for 2 hours and 5 minutes.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`error-output`,children:`Error Output`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In case of a `,_jsx(_components.a,{href:`https://developer.mozilla.org/docs/Web/JavaScript/Reference/Errors#list_of_errors`,children:_jsx(_components.strong,{children:`standard JavaScript error`})}),`, returns the specific JavaScript error.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`In case an evaluation times out, returns the following:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[Error: JavaScript evaluation timed out on remote server.]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`In case an evaluation fails to execute, returns the following:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[Error: Failed to execute JavaScript on remote server.]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"$(eval)","description":null,"href":"/variables/eval"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Parameters","slug":"parameters","depth":4,"children":[]},{"title":"Example Usage","slug":"example-usage","depth":2,"children":[{"title":"Error Output","slug":"error-output","depth":4,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"fossadev","siteName":"Fossabot","title":"$(eval) - Fossabot","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-12T10:22:25.633Z","originalFileLocation":"variables/eval.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Fossabot\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/fossadev/DGi_17xGFoJip4sU/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/fossadev/DGi_17xGFoJip4sU/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/fossadev/DGi_17xGFoJip4sU/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/fossadev/DGi_17xGFoJip4sU/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/fossadev/DGi_17xGFoJip4sU/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/fossadev/DGi_17xGFoJip4sU/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/fossadev/DGi_17xGFoJip4sU/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/fossadev/DGi_17xGFoJip4sU/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/fossadev/DGi_17xGFoJip4sU/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"$(eval) - Fossabot\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Fossabot\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://fossabot.com/docs/variables/eval\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fossadev.mintlify.site/docs/_mintlify/api/og/v2?division=Utilities\u0026amp;title=%24%28eval%29\u0026amp;theme=2af8c655ef4729d93ca1d0b8\u0026amp;signature=34e5d7d15afcc8ac972b28ea1af616366169d062aaa386614d96c14ad8f42872\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"$(eval) - Fossabot\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fossadev.mintlify.site/docs/_mintlify/api/og/v2?division=Utilities\u0026amp;title=%24%28eval%29\u0026amp;theme=2af8c655ef4729d93ca1d0b8\u0026amp;signature=34e5d7d15afcc8ac972b28ea1af616366169d062aaa386614d96c14ad8f42872\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/fossadev/DGi_17xGFoJip4sU/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Fossabot\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3e8eed\">\u003clink data-mint-head rel=\"canonical\" href=\"https://fossabot.com/docs/variables/eval\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/variables/eval.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://fossabot.com/#organization\",\"name\":\"Fossabot\",\"url\":\"https://fossabot.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/fossadev/9ND0fVWu53o1D_5a/img/logo.svg?fit=max\u0026auto=format\u0026n=9ND0fVWu53o1D_5a\u0026q=85\u0026s=f5e76ffec0fa0bf307a4ed7c29f54aa4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://fossabot.com/docs#website\",\"name\":\"Fossabot\",\"url\":\"https://fossabot.com/docs\",\"publisher\":{\"@id\":\"https://fossabot.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://fossabot.com/docs/variables/eval#webpage\",\"url\":\"https://fossabot.com/docs/variables/eval\",\"name\":\"$(eval)\",\"dateModified\":\"2026-10-12T10:22:25.633Z\",\"isPartOf\":{\"@id\":\"https://fossabot.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://fossabot.com/docs/variables/eval#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://fossabot.com/docs/variables/eval#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Utilities\",\"item\":\"https://fossabot.com/docs/variables/math\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"$(eval)\",\"item\":\"https://fossabot.com/docs/variables/eval\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://fossabot.com/docs/variables/eval#article\",\"headline\":\"$(eval)\",\"name\":\"$(eval)\",\"url\":\"https://fossabot.com/docs/variables/eval\",\"mainEntityOfPage\":{\"@id\":\"https://fossabot.com/docs/variables/eval#webpage\"},\"dateModified\":\"2026-10-12T10:22:25.633Z\",\"publisher\":{\"@id\":\"https://fossabot.com/#organization\"},\"isPartOf\":{\"@id\":\"https://fossabot.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Fossabot\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Fossabot","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Commands","pages":[{"title":"Commands","href":"/commands/custom-commands"}]},{"tab":"Variables","groups":[{"group":"Variables","pages":[{"title":"Variables","href":"/variables"}]},{"group":"Message \u0026 Arguments","pages":[{"title":"$(echo)","href":"/variables/echo"},{"title":"$(query)","href":"/variables/query"},{"title":"$(querystring)","href":"/variables/querystring"},{"title":"$(index)","href":"/variables/indexes"},{"title":"$(fromindex)","href":"/variables/fromindex"},{"title":"$(start:end)","href":"/variables/argument-range"},{"title":"$(msgid)","href":"/variables/msgid"},{"title":"$(bits)","href":"/variables/bits"},{"title":"$(sender)","href":"/variables/sender"},{"title":"$(user)","href":"/variables/user"}]},{"group":"Channel \u0026 Stream","pages":[{"title":"$(channel)","href":"/variables/channel"},{"title":"$(chatters)","href":"/variables/chatters"},{"title":"$(game)","href":"/variables/game"},{"title":"$(gamesplayed)","href":"/variables/gamesplayed"},{"title":"$(title)","href":"/variables/title"},{"title":"$(setgame)","href":"/variables/setgame"},{"title":"$(settitle)","href":"/variables/settitle"},{"title":"$(uptime)","href":"/variables/uptime"},{"title":"$(downtime)","href":"/variables/downtime"},{"title":"$(followage)","href":"/variables/followage"},{"title":"$(accountage)","href":"/variables/accountage"},{"title":"$(charity)","href":"/variables/charity"},{"title":"$(twitchreward)","href":"/variables/twitchreward"}]},{"group":"Emotes","pages":[{"title":"$(7tvemotes)","href":"/variables/7tvemotes"},{"title":"$(bttvemotes)","href":"/variables/bttvemotes"},{"title":"$(ffzemotes)","href":"/variables/ffzemotes"},{"title":"$(twitchemotes)","href":"/variables/twitchemotes"}]},{"group":"Counters \u0026 Time","pages":[{"title":"$(count)","href":"/variables/count"},{"title":"$(countdown)","href":"/variables/countdown"},{"title":"$(countup)","href":"/variables/countup"},{"title":"$(time)","href":"/variables/time"},{"title":"$(botuptime)","href":"/variables/botuptime"}]},{"group":"Utilities","pages":[{"title":"$(math)","description":null,"href":"/variables/math"},{"title":"$(eval)","href":"/variables/eval"},{"title":"$(randint)","description":null,"href":"/variables/randint"},{"title":"$(rngphrase)","href":"/variables/rngphrase"},{"title":"$(repeat)","href":"/variables/repeat"},{"title":"$(references)","href":"/variables/references"},{"title":"$(quote)","href":"/variables/quote"},{"title":"$(customapi)","href":"/variables/customapi"},{"title":"$(urlencode)","href":"/variables/urlencode"},{"title":"$(urldecode)","href":"/variables/urldecode"},{"title":"$(pathencode)","href":"/variables/pathencode"},{"title":"$(pathdecode)","href":"/variables/pathdecode"}]},{"group":"Integrations","pages":[{"title":"$(lastfm)","href":"/variables/lastfm"},{"title":"$(leagueoflegends)","href":"/variables/leagueoflegends"},{"title":"$(teamfighttactics)","href":"/variables/teamfighttactics"},{"title":"$(valorant)","href":"/variables/valorant"},{"title":"$(mastodon)","href":"/variables/mastodon"},{"title":"$(tiktok)","href":"/variables/tiktok"},{"title":"$(x)","href":"/variables/x"},{"title":"$(youtube)","href":"/variables/youtube"},{"title":"$(weather)","href":"/variables/weather"}]}]}]},"basePath":"","title":"$(eval) - Fossabot","buildId":"dpl_3pZeXn3XukjzFRgAX73A7GNDfRJ1","deploymentId":"dpl_3pZeXn3XukjzFRgAX73A7GNDfRJ1","dynamics":[],"chunks":[]}