mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-27 01:20:31 +03:00
fix: bad wspace handling
This commit is contained in:
@@ -96,7 +96,10 @@ app.webhooks.on(["issue_comment.created"], async ({ octokit, payload }) => {
|
||||
const body = payload.comment.body.trim();
|
||||
|
||||
if (body.startsWith("+bot")) {
|
||||
const cmd = body.split(" ")[1]?.replace(/[^a-z]/u, "");
|
||||
const cmd = body
|
||||
.split("\n")[0]!
|
||||
.split(/\s+/u)[1]
|
||||
?.replace(/[^a-z]/u, "");
|
||||
|
||||
switch (cmd) {
|
||||
case "ping": {
|
||||
|
||||
Reference in New Issue
Block a user