mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
fix: aa
This commit is contained in:
parent
e83e831ed1
commit
1dbc7796b1
1 changed files with 3 additions and 2 deletions
|
|
@ -61,11 +61,12 @@ export default class Message implements Command {
|
|||
// par.event.channel_type,
|
||||
// );
|
||||
//@ts-ignore
|
||||
// await par.ack();
|
||||
if(par.ack) await par.ack();
|
||||
if (par.event.channel_type !== "im") return;
|
||||
if (!par.event.text) return;
|
||||
if (!par.event.text.startsWith("!")) return;
|
||||
console.debug(`cmd`);
|
||||
//@ts-ignore
|
||||
console.debug(`cmd`, event.text);
|
||||
const { event, say } = par;
|
||||
|
||||
const args = event.text.slice(1).trim().split(/ +/);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue