Skip to content

Command Variables

Variables added to the command content.

!acmd [command_name] [command_content {command.variable}]
!acmd [command_name] [command_content {command.variable}]

{user.name}

Returns the username of the person using the command.

Example Usage

Command Add

!acmd good-morning Good morning {user.name}!
!acmd good-morning Good morning {user.name}!

User Message and Response

senchabot-app: !good-morning

Senchabot: Good morning senchabot-app!
senchabot-app: !good-morning

Senchabot: Good morning senchabot-app!

{random_number}

Returns a random number between 18-70.

Example Usage

Command Add

!acmd age {random.number}
!acmd age {random.number}

User Message and Response

senchabot-app: !age

Senchabot: I think... You're 29 years old!
senchabot-app: !age

Senchabot: I think... You're 29 years old!

{date}

Returns the date of the day it is used.

Example Usage

Command Add

!acmd date Date: {date}
!acmd date Date: {date}

User Message and Response

senchabot-app: !date

Senchabot: Date: 09/09/2023
senchabot-app: !date

Senchabot: Date: 09/09/2023

{cmd.date}

Returns the date of the command was created.

Example Usage

Command Add

!acmd christmas Happy christmas! -{cmd.date}
!acmd christmas Happy christmas! -{cmd.date}

User Message and Response

senchabot-app: !christmas

Senchabot: Happy christmas! -25/12/2023
senchabot-app: !christmas

Senchabot: Happy christmas! -25/12/2023

{channel.name}

Returns the name of the channel that the command is used.

Example Usage

Command Add

!acmd twitch-bot {channel.name} prefers to use the Senchabot!
!acmd twitch-bot {channel.name} prefers to use the Senchabot!

User Message and Response

senchabot-app: !twitch-bot

Senchabot: senchabot-app, prefers to use the Senchabot!
senchabot-app: !twitch-bot

Senchabot: senchabot-app, prefers to use the Senchabot!