Команди для бота: як створити свою команду
Створюйте команди зі змінними, аліасами, кулдаунами та правами доступу й користуйтеся десятками вбудованих.
Система команд, що росте разом із каналом
Commands are the heart of any chat bot. In Twir you create a command in the dashboard, give it a name and a response, and viewers can use it in chat right away. Responses can include variables for the user, stream, followers, song, Faceit stats, weather and much more.
Each command can have aliases, a global or per-user cooldown, a list of roles that can use it, several responses and an expiration date. Commands can be grouped, limited to certain game categories, and managed from chat by moderators with !commands add and !commands edit.
If you need more, write your own variables in JavaScript and use them in any command.
Як створити команду
Open Commands
Log in to Twir and open the Commands page in the dashboard.
Create a command
Set the name, response, variables, cooldown and permissions.
Use it in chat
Type the command in chat with an exclamation mark, the bot answers instantly.
Команди чату
| Команда | Що робить |
|---|---|
!commands add <name> <response> | Create a command from chat (moderators) |
!commands edit <name> <response> | Change a command response (moderators) |
!commands remove <name> | Delete a command (moderators) |
!uptime | How long the stream has been live |
!followage | How long the viewer has been following |
!watchtime | How long the viewer has watched the channel |
!title | Stream title |
!game | Stream category |
!so <user> | Shout out another streamer |
!clip | Create a clip |
!top | Top chatters by messages, watch time and more |
Можливості та налаштування
- Variables
- Insert the user name, uptime, follow age, current song, game, counters and dozens of other values.
- Aliases and cooldowns
- Give a command several names and protect chat from spam with global, per-user and role cooldowns.
- Permissions
- Choose which roles can use a command and deny specific users.
- Expiration and categories
- Disable or delete a command at a set time, or enable it only for specific game categories.
- Built-in commands
- !uptime, !followage, !watchtime, !title, !game, !song, !quote, !so, !clip, !permit, !top and many more.
- JavaScript variables
- Write custom variables in JavaScript to extend the bot however you like.
Часті запитання
Пов'язані інструкції
- ТаймериАвтоматичні повідомлення в чаті за розкладом з урахуванням часу та активності чату.
- Модерація чатуАвтоматичні фільтри посилань, капсу, символів, спаму, заборонених слів, смайлів і мов.
- Ігри в чатіДуелі, російська рулетка, вотбан, сеппуку та магічна куля 8-ball для вашого чату.
- РозіграшіПроводьте розіграші за ключовим словом або серед активних глядачів чату й обирайте випадкового переможця.
Хочете спробувати на своєму каналі?
Twir безкоштовний. Увійдіть через Twitch, Kick, VK Video Live або YouTube, і бот з'явиться у вашому чаті менш ніж за хвилину.