Functionalities
Other
Powered By GitBook
$activity
Returns a users game they're playing or the program they're running if they have their game status turned on.

FUNCTION USAGE

    $activity
    $activity[]
    $activity[userID]

Properties:

userID - Define a userID to return another users activity presence! [] - Leave blank for command authors activity presence

Example 1: Command author's activity

1
bot.Command({
2
name: "activity",
3
code: `
4
$activity - This is your activity (Visual Studio Code, Netflix, etc...)
5
`
6
})
Copied!

Example 2: Someone else's activity

1
bot.Command({
2
name: "activity",
3
code: `
4
$username[$replaceText[$replaceText[$checkCondition[$findUser[$message[]]==undefined];true;$authorID];false;$findUser[$message[]]]'s current activity is:
5
$activity[$replaceText[$replaceText[$checkCondition[$findUser[$message[]]==undefined];true;$authorID];false;$findUser[$message[]]]
6
`
7
})
Copied!
Last modified 8mo ago
Copy link
Contents
Properties: