You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Client,CommandHandler,Ctx,Events,MessageType,}from"@mengkodingan/ckptw";importpathfrom"path";import{handleChat}from"./bot";exportconstbot=newClient({prefix: "!",printQRInTerminal: true,readIncommingMsg: false});constbioTexts=["🚀 Bot is active right now","🚀 Bot created by Tuxedo Labs","🌟 Stay tuned for updates!","🔥 Powered by Node.js","💻 Coding is fun!","🌐 Always online!",];letcurrentBioIndex=0;constcmd=newCommandHandler(bot,path.resolve(__dirname,"handler"));bot.ev.once(Events.ClientReady,(m)=>{console.log(`ready at ${m.user.id}`);updateBio();cmd.load();});bot.hears(MessageType.conversation,async(ctx: Ctx)=>{constmessageText=ctx.msg?.content||"";// pingin nya di sini jika startwith "!" yang jalan commandhandlerif(messageText.startsWith("!")){return;}handleChat(ctx);});functionupdateBio(){constbio=bioTexts[currentBioIndex];bot.bio(bio);currentBioIndex=(currentBioIndex+1)%bioTexts.length;setTimeout(updateBio,10000);}bot.launch();
cara fix nya gimana? agar di MessageType.conversation jika startwith ! nanti yang jalan Commandhandler
The text was updated successfully, but these errors were encountered:
cara fix nya gimana? agar di MessageType.conversation jika startwith ! nanti yang jalan Commandhandler
The text was updated successfully, but these errors were encountered: