mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-07-04 14:19:19 +00:00
优化poke
This commit is contained in:
parent
5e076e0564
commit
9db83a0fee
@ -64,6 +64,7 @@ async function chuochuo(e) {
|
|||||||
await axios
|
await axios
|
||||||
.get(`${configControl.get(`coreConfig`)?.coreUrl}/api/words/getText/poke`)
|
.get(`${configControl.get(`coreConfig`)?.coreUrl}/api/words/getText/poke`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
logger.info(JSON.stringify(res));
|
||||||
if (res.data?.success) {
|
if (res.data?.success) {
|
||||||
return res.data.data;
|
return res.data.data;
|
||||||
} else {
|
} else {
|
||||||
@ -82,6 +83,7 @@ async function chuochuo(e) {
|
|||||||
if (returnData?.data?.success) {
|
if (returnData?.data?.success) {
|
||||||
let message = returnData.data.data.toString();
|
let message = returnData.data.data.toString();
|
||||||
message = cleanText(message);
|
message = cleanText(message);
|
||||||
|
logger.info(message);
|
||||||
return await e.bot.sendApi('get_ai_record', {
|
return await e.bot.sendApi('get_ai_record', {
|
||||||
group_id: e.group_id,
|
group_id: e.group_id,
|
||||||
character: 'lucy-voice-hoige',
|
character: 'lucy-voice-hoige',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user