Skip to content

Custom SIML Adapters

Łukasz Domeradzki edited this page Mar 6, 2018 · 45 revisions

This is a list of the custom SIML adapters available for use

ArchiChannelRandomUserNickname

It accepts a channel id and returns a random user from the chat. It's expected to be used with SourceID or with an hardcoded channel ID

Usage example:

<ArchiChannelRandomUserNickname>steam-110338190878500888</ArchiChannelRandomUserNickname>

Result:

Archi

ArchiDate

It accepts a location as input, for example a city or a country; it returns the current local date in that location.

Usage example 1:

<ArchiDate>Poland</ArchiDate>

Result:

20/06/2017

Usage example 2:

<ArchiDate>Rome</ArchiDate>

Result:

20/06/2017

ArchiDateTime

It accepts a location as input, for example a city or a country; it returns the interpreted input and the current local date and time in that location.

Usage example 1:

<ArchiDateTime>Poland</ArchiDateTime>

Result:

Poland | 20/06/2017 14:20:53

Usage example 2:

<ArchiDateTime>Rome</ArchiDateTime>

Result:

Italy | 20/06/2017 14:20:53

ArchiPatreonCampaignPledge

It accepts a campaign id and returns the amount of dollars currently pledged to it by its patrons, as well as the campaign's type (monthly or per-creation).

To find the campaign id you can check the project main page's source and look for it, for example by searching for "pledge_url"

campaign id location

Usage example:

<ArchiPatreonCampaignPledge>316025</ArchiPatreonCampaignPledge>

Result:

$57 per month

ArchiSteamGroupRandomUserNickname

It accepts a Steam group id and returns a random user from the group. Group refresh is done automatically if needed.

Usage example:

<ArchiSteamGroupRandomUserNickname>103582791437445144</ArchiSteamGroupRandomUserNickname>

Result:

Archi

ArchiSteamRandomEmoticon

It returns a random emoticon from a list. Used with no argument the list used is the entire list of ArchiBoT's available emoticons, otherwise it will pick a random emoticon from the list provided (ArchiBoT will ignore emotes that it doesn't own)

Usage example 1:

<ArchiSteamRandomEmoticon />

Result:

:Neko:

Usage example 2:

<ArchiSteamRandomEmoticon>:dice1: :dice2: :dice3:</ArchiSteamRandomEmoticon>

Result:

:dice2:

ArchiSynBotLateTasksClear

It removes any pending <Late> task that was created by the current user. It requires no argument and returns no output.

Usage example:

I'll clear the late tasks for you! <ArchiSynBotLateTasksClear />

Result:

I'll clear the late tasks for you!

ArchiSynBotUserGet

Given a User ID and User variable name, it returns the value of said variable or null in case of failure. Remember that Users are initialized when they first interact with the bot, so using an uninitialized User ID will always result in the Adapter returning null.

The delimiter between the 2 arguments can be any whitespace, although a non-breaking space &nbsp; is advised if working with tags in xml.

Usage example:

<ArchiSynBotUserGet>steam-76561198006963719 Name</ArchiSynBotUserGet>

Result:

Łukasz

ArchiTime

It accepts a location as input, for example a city or a country; it returns the current local time in that location.

Usage example 1:

<ArchiTime>Poland</ArchiTime>

Result:

14:20:53

Usage example 2:

<ArchiTime>Rome</ArchiTime>

Result:

14:20:53

ArchiTranslate

It accepts any input and translates it to English after trying to detect the input's language

Usage example:

<ArchiTranslate>Ogórek</ArchiTranslate>

Result:

Cucumber

ArchiTranslateFrom

It accepts a source 2-letter ISO 639-1 formatted language code followed by whitespace and any message. It returns a translation of the message from the source language specified to English, or null in case of failure

Usage example:

<ArchiTranslateFrom>pl Ogórek</ArchiTranslate>

Result:

Cucumber

ArchiTranslateFromTo

It accepts a source and a target 2-letter ISO 639-1 formatted language code separated and followed by whitespace and any message. It returns a translation of the message from the source language to the target language specified, or null in case of failure

Usage example:

<ArchiTranslateFromTo>pl fr Ogórek</ArchiTranslate>

Result:

Concombre

ArchiTranslateTo

It accepts a target 2-letter ISO 639-1 formatted language code followed by whitespace and any message. After trying to detect the input's language it returns a translation of it in the target language specified, or null in case of failure

Usage example:

<ArchiTranslateTo>fr Ogórek</ArchiTranslate>

Result:

Concombre

ArchiWeather

It accepts a city as the input and returns information about the weather

Usage example:

<ArchiWeather>Warsaw</ArchiWeather>

Result:

Warsaw, Masovian, Poland | 17°C/62°F | Mostly Cloudy

Clone this wiki locally