WETBOT
ManagersCommands
English
English
  • WETBOT - Introduction
  • What is reputation and luck?
  • Wipe
  • Premium
  • Commands
    • General commands
    • Shop commands
    • Inventory commands
    • Profile commands
    • Context commands
    • Admin commands
  • Guide
    • Setting the bot
    • Setting server currency
    • Receiving currency, experience, reputations
    • Items
      • Adding an item to a shop
      • Creating cryptocurrency
      • Auto-delivery items to shop
      • Craft of the item
      • Creating a case
      • Using the item
      • Ways to obtain an item
    • Create achievements
    • Create bonuses channels
    • Create quests
    • Wormholes
    • Create wormholes styles
    • Create category for shop
    • Create income roles
    • Autovoice channels
    • Select menu roles
    • Create gifts (manager-gifts)
    • Create custom buttons
    • Create jobs
    • Cron patterns
    • Inventory roles
    • Create custom role
  • Variables
    • Variables: wormholes styles
    • Variables: autovoice channels
    • Variables: jobs
  • API
    • Docs for API
  • Privacy policy
  • Terms of use
  • Authors of the documentation
  • Special thanks
Powered by GitBook
On this page
  • Arguments of the /components buttons add command:
  • Arguments of the /components buttons remove command:
  • Available commands for buttons:
  1. Guide

Create custom buttons

A guide to creating buttons with the functionality of some commands

PreviousCreate gifts (manager-gifts)NextCreate jobs

Last updated 9 days ago

The main command for creating buttons /components

Arguments of the /components buttons add command:

Argument
Description
Required

message_url

Link to the message for which the button will be added

Yes

style

Button style

Yes

id-or-url

The ID of the button or a link to the resource (If the style is a Link

Yes

row

The row of the component where the button will be added

Yes

column

Column of the component where the button will be added

Yes

label

Button label

No

emoji

Button emoji

No

disabled

Will the button be turned off

No

The arguments "label" or "emoji" are required

Arguments of the /components buttons remove command:

Argument
Description
Required

message_url

Link to the message in which the button will be removed

Yes

row

The row of the component where the button will be removed

Yes

column

The column of the component where the button will be removed

Yes

Available commands for buttons:

ID: cmd{get-gift}gift{giftId}

Arguments:

Name
Description
Required

gift

Gift ID

Yes

ID: cmd{buy}item{itemId}amount{10}price_type{currency}price{10} prms-off dscnt-off limits-off

Arguments:

Name
Description
Required

item

Item ID

Yes

amount

Amount for purchase

No

price_type

Price: Item ID; currency - the currency of the server

No

price

Price: Amount

No

prms-off

Disables purchase permissions, if any

No

dscnt-off

Disables discount depending on reputation

No

limits-off

Disables purchase limits

No

ignr-shop

Ignores the presence and quantity of the item in the shop

No

ID: cmd{sell}item{itemId}amount{10}

Arguments:

Name
Description
Required

item

Item ID

Yes

amount

Quantity for sale

No

ID: cmd{quest-give-to-user}quest{questId}

Arguments:

Name
Description
Required

quest

Possible values:

  1. Quest ID

  1. active - get all active quests

  2. daily - get a random daily quest

  3. weekly - get a random weekly quest

Yes

ID: cmd{getQuestReward}quest{questId}

Arguments:

Name
Description
Required

quest

Quest ID

No

In the absence of the quest argument, the user will receive rewards from all quests.

ID: cmd{quest-take-from-user}quest{questId}

Arguments:

Name
Description
Required

quest

Quest ID

Yes

ID: cmd{give-item}item{itemId}amount{10}

Arguments:

Name
Description
Required

item

Item ID

Yes

amount

Amount for sale

No

usr

The user for whom the item will be issued, if it is missing, it will be issued to the user who used the button

No

ID: cmd{take-item}item{itemId}amount{10}

Arguments:

Name
Description
Required

item

ID предмета

Yes

amount

Amount for sale

No

usr

The user from whom the item will be removed, if absent, will be removed from the user who used the button

No

ID: cmd{help}commands eph reply

Arguments:

Name
Description
Required

eph

If there is, then the message will be visible only to the person who pressed the button

No

reply

If there is, the message will be sent as a reply message.

No

ID: cmd{profile}eph reply

Arguments:

Name
Description
Required

eph

If there is, then the message will be visible only to the person who pressed the button

No

reply

If there is, the message will be sent as a reply message.

No

usr

The ID of the user who can use the button, if not, everyone can use it

No

mbr

The ID of the user whose profile will be displayed, if absent, the profile of the user who used the button is displayed.

No

ID: cmd{inventory}eph reply

Arguments:

Name
Description
Required

eph

If there is, then the message will be visible only to the person who pressed the button

No

reply

If there is, the message will be sent as a reply message.

No

usr

The ID of the user who can use the button, if not, everyone can use it

No

mbr

The ID of the user whose inventory will be displayed, if missing, the inventory of the user who used the button is displayed.

No

ID: cmd{achievements}eph reply

Arguments:

Name
Description
Required

eph

If there is, then the message will be visible only to the person who pressed the button

No

reply

If there is, the message will be sent as a reply message.

No

usr

The ID of the user who can use the button, if not, everyone can use it

No

mbr

The ID of the user whose achievements will be shown, if absent, the achievements of the user who used the button are shown.

No

ID: cmd{rank}eph reply

Arguments:

Name
Description
Required

eph

If there is, then the message will be visible only to the person who pressed the button

No

reply

If there is, the message will be sent as a reply message.

No

mbr

ID of the user whose card will be shown, if it is missing, the card of the user who used the button is shown

No

ID: cmd{rank-set}eph reply

Arguments:

Name
Description
Required

eph

If there is, then the message will be visible only to the person who pressed the button

No

reply

If there is, the message will be sent as a reply message.

No

ID: cmd{say}channelId{ID}messageId{ID}permission{ID}eph reply

Arguments:

Name
Description
Requried

eph

If there is, then the message will be visible only to the person who pressed the button

No

reply

If there is, the message will be sent as a reply message.

No

update

If there is, the message will be edited

No

channelId

ID of the channel to search for the message

No

messageId

Message ID

No

permission

Permission ID

No

The channelId and messageId arguments are used together, you can't use one

The channelId and messageId arguments are used to output a message from a specific channel. In this way, you can create a button that will output any message from any channel.

The message is output via the channelId and messageId arguments together with the buttons and files attached to this message.

If you insert a link to a message into the say command form, the bot will output a completely copied message.

ID: cmd{stats}eph reply

Arguments:

Name
Description
Required

eph

If there is, then the message will be visible only to the person who pressed the button

No

reply

If there is, the message will be sent as a reply message.

No

usr

The ID of the user who can use the button, if not, everyone can use it

No

mbr

The ID of the user whose statistics will be displayed, if absent, the statistics of the user who used the button are displayed

No

ID: cmd{inventory-roles} eph reply

Arguments:

Name
Description
Required

eph

If there is, then the message will be visible only to the person who pressed the button

No

reply

If there is, the message will be sent as a reply message.

No

usr

The ID of the user who can use the button, if not, everyone can use it

No

mbr

The ID of the user whose inventory roles will be displayed, if missing, the inventory roles of the user who used the button is displayed.

No

ID: cmd{custom-role}

A guide to creating gifts
A guide to creating items
A guide to creating items
A guide to creating quests
A guide to creating quests
A guide to creating quests
A guide to creating items
A guide to creating items
635KB
Видео 17-06-2023 11_26_02.mp4
2MB
Видео 17-06-2023 11_36_45.mp4