• 欢迎来到小可 · Wiki,人人可编辑的,多平台聊天机器人“小可”的官方文档资源。
  • 小可很可爱,请给我们打钱
  • 原 MkDocs 已迁入本站。若发现 404 属正常现象,请点击左上角搜索您想要的模块。

module:修订间差异

来自小可 · Wiki,人人可编辑的,QQ机器人“小可”的官方文档资源
(建立内容为“{{Instructors| * {{Instructor source}} * {{Instructor forced}} }} '''<code>module</code>''' 模块是小可最基础的模块。此模块可以让你启用或禁…”的新页面)
标签2017年版源代码编辑
 
 
(未显示2个用户的24个中间版本)
第1行: 第1行:
{{Instructors|
{{Instructors|
* {{Instructor permission|admin}}
* {{Instructor source}}
* {{Instructor source}}
* {{Instructor forced}}
* {{Instructor forced}}
}}
}}


'''<code>module</code>''' 模块是小可最基础的模块。 此模块可以 让你启用或禁用 模块。
 此模块可以 控制其他 模块。


== <code>modules</code> ==
== <code>module enable</code> ==
{{Instructors|
{{Instructors|
* {{Instructor permission}}
* {{Instructor permission|admin}}
* {{Instructor forced}}
* {{Instructor alias|enable}}
}}
用法:
* 指定:<code>~module enable [-g] <模块 1> [<模块 2>...]</code>
* 全部({{Instructor unrecommended}}):<code>~module enable all [-g]</code>
 
选项:
* <code>-g</code>:应用至 QQ 频道全局。
 
此命令可以开启指定或所有模块。
 
== <code>module disable</code> ==
{{Instructors|
* {{Instructor permission|admin}}
* {{Instructor alias|disable}}
}}
}}
用法:
* 指定:<code>~module disble [-g] <模块 1> [<模块 2>...]</code>
* 全部:<code>~module disable all [-g]</code>


  使 此命令以开关模块
  选项:
* <code>-g</code>:应 至 QQ 频道全局


  用法:<code>~module <enable/disable> < 模块 名></code>
  此命令可以关闭指定或所有 模块


== <code>enable</code> / <code>disable</code> ==
== <code>module list</code> ==
{{Instructors|
{{Instructors|
* {{Instructor permission|admin}}
* {{Instructor permission|admin}}
* {{Instructor forced}}
* {{Instructor unrecommended}}
}}
用法:<code>~module list [legacy]</code>
 
此命令可以列出目前机器人的所有模块。
 
加入 <code>legacy</code> 强制使用文字模式。
 
== <code>module reload</code> ==
{{Instructors|
* {{Instructor permission|superuser|nocat=1}}
* {{Instructor alias|reload}}
}}
 
用法:<code>~module reload [-f] <模块 1> [<模块 2>...]</code>
选项:
* <code>-f</code>:跳过确认强制重新加载。
 
此命令可以重新加载模块。
 
== <code>module unload</code> ==
{{Instructors|
* {{Instructor permission|superuser|nocat=1}}
* {{Instructor alias|unload}}
}}
}}
用法:<code>~module unload <模块 1> [<模块 2>...]</code>


{{Mbox deprecated|请 使 用<code>[[#module|module]]</code> }}
此命令可以卸载模块,并 使 其在重启时不加载


 用法:<code>~<enable|disable> [<self>] <模块 名称|all></code>
== <code>module load</code> ==
{{Instructors|
* {{Instructor permission|superuser|nocat=1}}
* {{Instructor alias|load}}
}}
 用法:<code>~module load < 模块 1> [<模块 2>...]</code>


<code>[[#module|module]]</code> 别名
此命令可以重新加载已卸载 模块


{{Navbox modules|核心}}
{{Navbox modules|核心}}

2024年4月19日 (五) 16:32的最新版本

此模块可以控制其他模块。

module enable

用法:

  • 指定:~module enable [-g] <模块 1> [<模块 2>...]
  • 全部( 不推荐):~module enable all [-g]

选项:

  • -g:应用至 QQ 频道全局。

此命令可以开启指定或所有模块。

module disable

用法:

  • 指定:~module disble [-g] <模块 1> [<模块 2>...]
  • 全部:~module disable all [-g]

选项:

  • -g:应用至 QQ 频道全局。

此命令可以关闭指定或所有模块。

module list

用法:~module list [legacy]

此命令可以列出目前机器人的所有模块。

加入 legacy 强制使用文字模式。

module reload

用法:~module reload [-f] <模块 1> [<模块 2>...] 选项:

  • -f:跳过确认强制重新加载。

此命令可以重新加载模块。

module unload

用法:~module unload <模块 1> [<模块 2>...]

此命令可以卸载模块,并使其在重启时不加载。

module load

用法:~module load <模块 1> [<模块 2>...]

此命令可以重新加载已卸载的模块。

Cookie帮助我们提供我们的服务。通过使用我们的服务,您同意我们使用cookie。