This variable behaves differently when used inside of timers!Timers are executed on an interval by Fossabot itself and therefore this variable behaves different when used inside of one.If you want to use it with a timer, a valid Twitch username must be provided as the first parameter or Fossabot will return nothing in its place.
Example Usage
-
A command with the name
!shoutoutand a response of the following:If triggered by!shoutout aiden, could return the following response: -
A command with the name
!fossabotand a response of the following:If triggered, could return the following response:
$(user)
Returns the same as$(user.display_name) and $(touser), the uppercase version, or internationalized version of a user’s username.
Parameters
This variable takes one optional parameter that is a Twitch username of who to fetch the metadata of. Defaults to the sender if neither hardcoded nor provided at command execution, a user does not exist or is otherwise unavailable.Example Output
-
$(user) -
$(user fossabot)
Error Output
-
In case an invalid username is provided, returns the following:
$(user.accountage)
Returns the time that has passed since a user created their Twitch account.Parameters
This variable takes one optional parameter that is a Twitch username of who to fetch the metadata of. Defaults to the sender if neither hardcoded nor provided at command execution, a user does not exist or is otherwise unavailable.Example Output
-
$(user.accountage) -
$(user.accountage fossabot)
Error Output
-
In case an invalid username is provided, returns the following:
$(user.accountsince)
Returns the date when a user created their Twitch account in coordinated universal time (UTC).Parameters
This variable takes one optional parameter that is a Twitch username of who to fetch the metadata of. Defaults to the sender if neither hardcoded nor provided at command execution, a user does not exist or is otherwise unavailable.Example Output
-
$(user.accountsince) -
$(user.accountsince fossabot)
$(user.bio)
Returns the Twitch bio a user has set on their channel.Parameters
This variable takes one optional parameter that is a Twitch username of who to fetch the metadata of. Defaults to the sender if neither hardcoded nor provided at command execution, a user does not exist or is otherwise unavailable.Example Output
-
$(user.bio) -
$(user.bio fossabot)
Error Output
-
In case an invalid username is provided, returns the following:
-
In case the users’ bio is empty/not set, returns the following:
$(user.display_name)
Returns the same as$(user) and $(touser), the uppercase version, or internationalized version of a user’s username.
Parameters
This variable takes one optional parameter that is a Twitch username of who to fetch the metadata of. Defaults to the sender if neither hardcoded nor provided at command execution, a user does not exist or is otherwise unavailable.Example Output
-
$(user.display_name) -
$(user.display_name fossabot)
Error Output
-
In case an invalid username is provided, returns the following:
$(user.followers)
Returns the current number of followers of a user.Parameters
This variable takes one optional parameter that is a Twitch username of who to fetch the metadata of. Defaults to the sender if neither hardcoded nor provided at command execution, a user does not exist or is otherwise unavailable.Example Output
-
$(user.followers) -
$(user.followers fossabot)
Error Output
-
In case an invalid username is provided, returns the following:
$(user.game)
Returns the current Twitch directory a user is under.Parameters
This variable takes one optional parameter that is a Twitch username of who to fetch the metadata of. Defaults to the sender if neither hardcoded nor provided at command execution, a user does not exist or is otherwise unavailable.Example Output
-
$(user.game) -
$(user.game fossabot)
Error Output
-
In case an invalid username is provided, returns the following:
$(user.login)
Returns the lowercase version of a user’s username (otherwise known as login).Parameters
This variable takes one optional parameter that is a Twitch username of who to fetch the metadata of. Defaults to the sender if neither hardcoded nor provided at command execution, a user does not exist or is otherwise unavailable.Example Output
-
$(user.login) -
$(user.login fossabot)
Error Output
-
In case an invalid username is provided, returns the following:
$(user.provider)
Returns the platform a user sent the message from (i.e. twitch).Parameters
This variable takes one optional parameter that is a Twitch username of who to fetch the metadata of. Defaults to the sender if neither hardcoded nor provided at command execution, a user does not exist or is otherwise unavailable.Example Output
-
$(user.provider) -
$(user.provider fossabot)
Error Output
-
In case an invalid username is provided, returns the following:
$(user.provider_id)
Returns the platform ID (e.g. the Twitch ID) of a user.Parameters
This variable takes one optional parameter that is a Twitch username of who to fetch the metadata of. Defaults to the sender if neither hardcoded nor provided at command execution, a user does not exist or is otherwise unavailable.Example Output
-
$(user.provider_id) -
$(user.provider_id fossabot)
Error Output
-
In case an invalid username is provided, returns the following:
$(user.title)
Returns the current stream title of a user’s Twitch channel.Parameters
This variable takes one optional parameter that is a Twitch username of who to fetch the metadata of. Defaults to the sender if neither hardcoded nor provided at command execution, a user does not exist or is otherwise unavailable.Example Output
-
$(user.title) -
$(user.title fossabot)
Error Output
-
In case an invalid username is provided, returns the following:
$(user.uptime)
Returns the time that has passed since a user’s stream has gone live.Parameters
This variable takes one optional parameter that is a Twitch username of who to fetch the metadata of. Defaults to the sender if neither hardcoded nor provided at command execution, a user does not exist or is otherwise unavailable.Example Output
-
$(user.uptime) -
$(user.uptime fossabot)
Error Output
-
In case an invalid username is provided, returns the following:
-
In case a user’s stream is currently offline, returns the following:
$(user.viewers)
Returns the current number of viewers watching a user’s stream.Parameters
This variable takes one optional parameter that is a Twitch username of who to fetch the metadata of. Defaults to the sender if neither hardcoded nor provided at command execution, a user does not exist or is otherwise unavailable.Example Output
-
$(user.viewers) -
$(user.viewers fossabot)
Error Output
-
In case an invalid username is provided, returns the following:
-
In case a user’s stream is currently offline, returns the following:
$(user.views)
Returns the total number of views that a user has on their profile page.Parameters
This variable takes one optional parameter that is a Twitch username of who to fetch the metadata of. Defaults to the sender if neither hardcoded nor provided at command execution, a user does not exist or is otherwise unavailable.Example Output
-
$(user.views) -
$(user.views fossabot)
Error Output
-
In case an invalid username is provided, returns the following: