那個 /bot
command lets admins and server operators create, configure, and manage bots. Running /bot with no arguments opens Bot Management for admins, while regular users see the bot list.
語法
/bot /bot create <name> [description] /bot destroy <name> /bot list /bot info <name> /bot join <bot> <channel> /bot part <bot> <channel> /bot enable <bot> /bot disable <bot> /bot set <bot> <key> <value> /bot commands <bot> /bot addcmd <bot> <trigger> <response> /bot delcmd <bot> <trigger>
子命令
create ——創建新機器人. 名稱必須是 2–16 個字符 。 名稱後有可選描述.
/bot create GreeterBot Welcomes new users
destroy ——永久刪除一個機器人及其所有數據.
/bot destroy GreeterBot
list ——顯示所有註冊的bot的狀態. 可供所有用戶使用。
/bot list
info ——顯示一個機器人的詳細信息. 可供所有用戶使用。
/bot info GreeterBot
加入/ 部分 ——讓機器人加入或離開頻道.
/bot join GreeterBot #general /bot part GreeterBot #help
啓用/ 禁用 — Toggle a bot globally.
/bot enable GreeterBot /bot disable GreeterBot
set
- 換個機器人設定 有效的密鑰 : greeting, farewell, mention_response, prefix, cooldown, description, nickname.
/bot set GreeterBot greeting Welcome, {nickname}! /bot 設置 GreeterBot 冷卻3000 /bot 設置 GreeterBot 前綴 ?
commands ——列出一個機器人的自定義命令. 可供所有用戶使用。
/bot commands GreeterBot
添加cmd / 解碼器 —— 添加或刪除自定義命令。
/bot addcmd GreeterBot rules Please read #rules /bot delcmd GreeterBot rules
實例
/bot list /bot info GreeterBot /bot create GreeterBot Welcomes new users /bot join GreeterBot #general /bot addcmd GreeterBot rules Please read #rules
規則和限制
- 瓶名必須是 2–16 個字符, 唯一
-
命令前綴可以是 1–3 個字符( 默認 :
!) - 冷卻最小值爲 500ms( 默認爲 2000ms)
- 只有管理員和服務器操作員才能創建、修改或刪除 bots
-
運行
/bot沒有參數打開 Bot 管理對話框( 僅限管理員) 或顯示 bot 列表( 常規用戶)
另見
Bot Management Dialog · BotService 概覽 · 裝瓶自定義命令 · ice · 特里維亞 · 調度器 · 簡易新聞聚合 · 調和