lfg

Privateunrated

Content

58 lines
{=(REM):Change this to the ID of your lfg role}
{=(lfgRole):701165737825402912}

{=(REM):Change this to the ID of the channel where LFG requests and reminders will be posted}
{=(lfgChannel):701158068456784022}

{=(REM):Add a list of images that get randomly attached in the image url field because its nice}
{=(image):{#:https://i.pinimg.com/originals/64/76/f0/6476f07b80b136d3be57b1f550efa239.jpg~https://i.pinimg.com/originals/42/f5/fd/42f5fd10e550e5bd67935c01cf722e1a.jpg~https://12ax7web.s3.amazonaws.com/accounts/1/products/1986199880048/Pew-Pew-Cathulhu_800x800_SEPS-1000x1000.jpg}}

{=(REM):Offset-Correction for the Timezone difference between the basement where the bot is hosted and beautiful germany}
{=(timeFix):7200}

{=(REM):Emoji to use for reaction}
{=(emoji):<a:duckdab:701220872639348897>}

{=(REM):No changes should be needed beyoned this point}
{=(REM):==============================================}

{=(REM):Redirect output to LFG channel silence command outputs and override modrole since we're working with roles}
{redirect:{lfgChannel}}{silence}{override}

{=(REM):Break early in case we are called without arguments, doesn't work dk why - must be Carl}
{break({args}==):You did not provide the proper input.}

{=(REM):Get the Name of the session - just a random identifier}
{=(name):{args(1)}}

{=(REM):Get the time - setup times}
{=(time):{args(2)}}
{=(userTime):{args(2)}}
{=(time):{strf({m:trunc({unix}+{timeFix})}):%Y-%m-%d {time}:%S}}
{=(time.unix):{strf({time}):%s}}
{=(time.announce):{m:{time.unix}-3600}}
{=(time.announce):{m:trunc({time.announce})}}
{=(tdTimeAnnounce):{replace(and, ):{td:{time.announce}}}}

{=(REM):Get the game to be played}
{=(game):{args(3+)}}

{=(REM):Error Check some more}
{=(status):ready}
{=(status):{all({name}!=|{time}!=|{game}!=):ready|error}}
{if({status}==error):{status}: name: {name}, time: {time}, game: {game}}

{=(REM):Add the role to the current user if needed, post an autofeed to}
{=(null):}{{all({contains({lfgRole}):{user(roleids)}}==false|{status}==ready):cmd:role add {user} {lfgRole}|null}}
{=(null):}{{if({status}==ready):cmd:af create lfg {tdTimeAnnounce} Erinnerung: {user(mention)} und die Gruppe {name} starten bald. Macht euch bereit!|null}}

{=(REM):Add the reaction to the invoking message and to the newly created one}
{react: {emoji} }
{reactu: 👌 }

{=(REM):Set the timestamp to now, and the color of the embed to the users color}
{embed(timestamp):now}
{embed(color):{user(color)}}

{=(REM):Mention the lfgRole}
<@&{lfgRole}> {user} sucht nacht Mitspielern für {game}.

Embed

1 line
{"color": 2105893, "image": {"url": "{image}"}, "author": {"name": "{user} sucht nach Mitspielern", "icon_url": ""}, "fields": [{"name": ":book: **Spiel:**", "value": "{game}", "inline": true}, {"name": ":stopwatch: **Wann:**", "value": "{time}", "inline": true}, {"name": "**Erinnerung:**", "value": "{tdTimeAnnounce}", "inline": true}], "thumbnail": {"url": "https://static-cdn.jtvnw.net/emoticons/v1/1820343/3.0"}, "description": "{user(mention)} hat eine Suche nach Spielern für die Gruppe namens **{name}** gestartet. Er hofft Spieler für **{game}** zu finden und möchte gerne um **{userTime}** beginnen.\n\nUm dich anzumelden verwende bitte das Symbol unten und setze dich mit {user} in Verbindung.\n\n"}
Raw JSON
{
  "id": 156828,
  "created_at": "2022-04-26T10:35:49.264Z",
  "tag_name": "lfg",
  "nsfw": false,
  "owner_id": "142330794105503744",
  "uses": 170,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "366639774456610817",
  "sharer": "142330794105503744",
  "content": "{=(REM):Change this to the ID of your lfg role}\n{=(lfgRole):701165737825402912}\n\n{=(REM):Change this to the ID of the channel where LFG requests and reminders will be posted}\n{=(lfgChannel):701158068456784022}\n\n{=(REM):Add a list of images that get randomly attached in the image url field because its nice}\n{=(image):{#:https://i.pinimg.com/originals/64/76/f0/6476f07b80b136d3be57b1f550efa239.jpg~https://i.pinimg.com/originals/42/f5/fd/42f5fd10e550e5bd67935c01cf722e1a.jpg~https://12ax7web.s3.amazonaws.com/accounts/1/products/1986199880048/Pew-Pew-Cathulhu_800x800_SEPS-1000x1000.jpg}}\n\n{=(REM):Offset-Correction for the Timezone difference between the basement where the bot is hosted and beautiful germany}\n{=(timeFix):7200}\n\n{=(REM):Emoji to use for reaction}\n{=(emoji):<a:duckdab:701220872639348897>}\n\n{=(REM):No changes should be needed beyoned this point}\n{=(REM):==============================================}\n\n{=(REM):Redirect output to LFG channel silence command outputs and override modrole since we're working with roles}\n{redirect:{lfgChannel}}{silence}{override}\n\n{=(REM):Break early in case we are called without arguments, doesn't work dk why - must be Carl}\n{break({args}==):You did not provide the proper input.}\n\n{=(REM):Get the Name of the session - just a random identifier}\n{=(name):{args(1)}}\n\n{=(REM):Get the time - setup times}\n{=(time):{args(2)}}\n{=(userTime):{args(2)}}\n{=(time):{strf({m:trunc({unix}+{timeFix})}):%Y-%m-%d {time}:%S}}\n{=(time.unix):{strf({time}):%s}}\n{=(time.announce):{m:{time.unix}-3600}}\n{=(time.announce):{m:trunc({time.announce})}}\n{=(tdTimeAnnounce):{replace(and, ):{td:{time.announce}}}}\n\n{=(REM):Get the game to be played}\n{=(game):{args(3+)}}\n\n{=(REM):Error Check some more}\n{=(status):ready}\n{=(status):{all({name}!=|{time}!=|{game}!=):ready|error}}\n{if({status}==error):{status}: name: {name}, time: {time}, game: {game}}\n\n{=(REM):Add the role to the current user if needed, post an autofeed to}\n{=(null):}{{all({contains({lfgRole}):{user(roleids)}}==false|{status}==ready):cmd:role add {user} {lfgRole}|null}}\n{=(null):}{{if({status}==ready):cmd:af create lfg {tdTimeAnnounce} Erinnerung: {user(mention)} und die Gruppe {name} starten bald. Macht euch bereit!|null}}\n\n{=(REM):Add the reaction to the invoking message and to the newly created one}\n{react: {emoji} }\n{reactu: 👌 }\n\n{=(REM):Set the timestamp to now, and the color of the embed to the users color}\n{embed(timestamp):now}\n{embed(color):{user(color)}}\n\n{=(REM):Mention the lfgRole}\n<@&{lfgRole}> {user} sucht nacht Mitspielern für {game}.",
  "embed": "{\"color\": 2105893, \"image\": {\"url\": \"{image}\"}, \"author\": {\"name\": \"{user} sucht nach Mitspielern\", \"icon_url\": \"\"}, \"fields\": [{\"name\": \":book: **Spiel:**\", \"value\": \"{game}\", \"inline\": true}, {\"name\": \":stopwatch: **Wann:**\", \"value\": \"{time}\", \"inline\": true}, {\"name\": \"**Erinnerung:**\", \"value\": \"{tdTimeAnnounce}\", \"inline\": true}], \"thumbnail\": {\"url\": \"https://static-cdn.jtvnw.net/emoticons/v1/1820343/3.0\"}, \"description\": \"{user(mention)} hat eine Suche nach Spielern für die Gruppe namens **{name}** gestartet. Er hofft Spieler für **{game}** zu finden und möchte gerne um **{userTime}** beginnen.\\n\\nUm dich anzumelden verwende bitte das Symbol unten und setze dich mit {user} in Verbindung.\\n\\n\"}",
  "last_fetched": "2026-10-20T21:16:32.121Z"
}