Something went wrong. Try again.
fossabot clone for streamplace superbot.mmatt.net
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273/** * Response variables. The syntax follows Fossabot's `$(name args)` so that * commands migrated from it keep working. Variables nest: `$(user $(1))`. */export interface VariableDoc { syntax: string description: string group: 'Message' | 'Users' | 'Channel & stream' | 'Counters' | 'Random' | 'Time' | 'Text' | 'Web' | 'Other' example?: string}
export const VARIABLE_DOCS: VariableDoc[] = [ { syntax: '$(sender)', description: 'The sender’s display name. Members: .handle, .did, .display_name, .accountage, .accountsince, .followers, .bio', group: 'Users' }, { syntax: '$(user [handle])', description: 'A user’s display name, defaulting to the sender. Members: .handle, .did, .display_name, .accountage, .accountsince, .followers, .bio, .time_online, .time_offline', group: 'Users', example: '$(user $(1))' }, { syntax: '$(sendername)', description: 'The sender’s handle, without the @. Useful in /timeout and /ban.', group: 'Users' }, { syntax: '$(touser)', description: 'The first argument (without @), or the sender if there isn’t one.', group: 'Users' }, { syntax: '$(followage [user] [channel])', description: 'How long a user has followed the channel on Bluesky, as a sentence.', group: 'Users' }, { syntax: '$(followsince [user])', description: 'The date a user followed the channel.', group: 'Users' }, { syntax: '$(accountage [user])', description: 'How long ago a Bluesky account was created.', group: 'Users' }, { syntax: '$(echo)', description: 'The full message, including the command name.', group: 'Message' }, { syntax: '$(query)', description: 'Everything after the command name.', group: 'Message' }, { syntax: '$(querystring)', description: '$(query), URL-encoded.', group: 'Message' }, { syntax: '$(1) … $(9), $(index n [fallback])', description: 'A single argument (1-based).', group: 'Message' }, { syntax: '$(2:), $(fromindex n [fallback])', description: 'Every argument from n onward.', group: 'Message' }, { syntax: '$(start:end [fallback])', description: 'Arguments start through end. $(:3) is the first three.', group: 'Message' }, { syntax: '$(msgid)', description: 'The AT URI of the triggering message.', group: 'Message' }, { syntax: '$(channel)', description: 'The channel’s handle. Members: .display_name, .handle, .did, .slug, .followers, .viewers, .uptime, .url, .commands_url, .media_url', group: 'Channel & stream' }, { syntax: '$(title)', description: 'The current stream title.', group: 'Channel & stream' }, { syntax: '$(game)', description: 'The current game or activity. $(game.playtime) is how long it’s been on.', group: 'Channel & stream' }, { syntax: '$(gamesplayed)', description: 'Every game or activity from the latest stream.', group: 'Channel & stream' }, { syntax: '$(uptime)', description: 'How long the stream has been live.', group: 'Channel & stream' }, { syntax: '$(downtime)', description: 'How long the stream has been offline.', group: 'Channel & stream' }, { syntax: '$(viewers)', description: 'The current viewer count.', group: 'Channel & stream' }, { syntax: '$(chatters)', description: 'How many people chatted in the last 10 minutes. $(chatters.random) picks one.', group: 'Channel & stream' }, { syntax: '$(settitle title)', description: 'Change the stream title.', group: 'Channel & stream' }, { syntax: '$(setgame name)', description: 'Change the game or activity.', group: 'Channel & stream' }, { syntax: '$(count)', description: 'Add one to this command’s counter and return it.', group: 'Counters' }, { syntax: '$(count.get name)', description: 'A named counter’s value.', group: 'Counters' }, { syntax: '$(count.increment name [amount])', description: 'Add to a named counter (negative to subtract). Alias: $(count.update).', group: 'Counters' }, { syntax: '$(count.set name n)', description: 'Set a named counter.', group: 'Counters' }, { syntax: '$(randint min max)', description: 'A random whole number between min and max.', group: 'Random', example: '$(randint 1 100)' }, { syntax: '$(rngphrase a,b,c)', description: 'A random phrase from a comma-separated list.', group: 'Random' }, { syntax: '$(eightball)', description: 'A random magic 8-ball answer.', group: 'Random' }, { syntax: '$(time zone [format])', description: 'The current time in an IANA time zone. Alias: $(currenttime).', group: 'Time', example: '$(time America/New_York)' }, { syntax: '$(countdown date [time] [GMT offset])', description: 'Time until a date (or since, if it’s passed).', group: 'Time' }, { syntax: '$(countup date [time] [GMT offset])', description: 'Time since a date (or until, if it’s in the future).', group: 'Time' }, { syntax: '$(botuptime)', description: 'How long the bot process has been running.', group: 'Time' }, { syntax: '$(math expression)', description: 'Evaluate arithmetic: + - * / % ^, parentheses, and functions such as round, floor, ceil, sqrt, abs, min, max.', group: 'Text', example: '$(math 2 * (3 + 4))' }, { syntax: '$(repeat n phrase)', description: 'Repeat a phrase n times.', group: 'Text' }, { syntax: '$(urlencode text)', description: 'URL-encode text (spaces become +).', group: 'Text' }, { syntax: '$(urldecode text)', description: 'Decode URL-encoded text.', group: 'Text' }, { syntax: '$(pathencode text)', description: 'Path-encode text (spaces become %20).', group: 'Text' }, { syntax: '$(pathdecode text)', description: 'Decode path-encoded text.', group: 'Text' }, { syntax: '$(upper text) / $(lower text)', description: 'Change the case of text.', group: 'Text' }, { syntax: '$(customapi url)', description: 'The body of an HTTP GET to the URL (first 400 characters). Alias: $(urlfetch).', group: 'Web' }, { syntax: '$(lastfm [user] [format])', description: 'The track a Last.fm user is playing (defaults to the username saved in Integrations). Last.fm must be turned on in Integrations. The format can use {artist} and {songname}.', group: 'Web' }, { syntax: '$(tealfm [handle] [format])', description: 'The track a teal.fm user is playing (defaults to the handle saved in Integrations, then the channel). teal.fm must be turned on in Integrations. The format can use {artist} and {songname}.', group: 'Web' }, { syntax: '$(weather location)', description: 'The current weather somewhere.', group: 'Web' }, { syntax: '$(bsky.latest [user])', description: 'A link to the latest Bluesky post from a user, or from the channel.', group: 'Web' }, { syntax: '$(quote [n|random])', description: 'A quote, as “#n: text”.', group: 'Other' }, { syntax: '$(references command)', description: 'Another custom command’s response.', group: 'Other' }, { syntax: '$(song)', description: 'The media request that’s playing now.', group: 'Other' },]
/** Chat actions a response can start with. */export const RESPONSE_ACTIONS = [ { syntax: '/timeout <user> <seconds> [reason]', description: 'Time someone out.' }, { syntax: '/ban <user> [reason]', description: 'Ban someone from chat.' }, { syntax: '/unban <user>', description: 'Lift a ban or timeout.' }, { syntax: '/delete', description: 'Hide the message that triggered this.' }, { syntax: '/pin', description: 'Pin the message that triggered this.' },]