@atri-bot/plugin-ping 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{BasePlugin as o}from"@atri-bot/core";import{Command as i}from"commander";import{Structs as m}from"node-napcat-ts";var n=class extends o{defaultConfig={defaultReply:"pong"};load(){this.regCommandEvent({commandName:"ping",commander:new i().description("\u6D4B\u8BD5\u673A\u5668\u4EBA\u662F\u5426\u5728\u7EBF").argument("[reply]","\u56DE\u590D\u5185\u5BB9").option("-r, --reply [reply]","\u56DE\u590D\u5185\u5BB9"),callback:this.handlePingCommand.bind(this)})}unload(){}async handlePingCommand({context:a,args:e,params:t}){await this.bot.sendMsg(a,[m.text(e[0]??t.reply??this.config.defaultReply)],{reply:!1,at:!1})}};export{n as Plugin};
1
+ import{BasePlugin as o}from"@atri-bot/core";import{Command as i}from"commander";import{convertCQCodeToJSON as m}from"node-napcat-ts";var e=class extends o{defaultConfig={defaultReply:"pong"};load(){this.regCommandEvent({commandName:"ping",commander:new i().description("\u6D4B\u8BD5\u673A\u5668\u4EBA\u662F\u5426\u5728\u7EBF").argument("[reply]","\u56DE\u590D\u5185\u5BB9").option("-r, --reply [reply]","\u56DE\u590D\u5185\u5BB9"),callback:this.handlePingCommand.bind(this)})}unload(){}async handlePingCommand({context:n,args:a,params:t}){await this.bot.sendMsg(n,m(t.reply??a[0]??this.config.defaultReply),{reply:!1,at:!1})}};export{e as Plugin};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atri-bot/plugin-ping",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "ping plugin for atri framework",
5
5
  "author": "huan_kong",
6
6
  "license": "MIT",