This commit is contained in:
2024-10-11 09:46:18 -04:00
parent 84c45695b7
commit ddc6f2d167
15 changed files with 1504 additions and 559 deletions

View File

@ -98,12 +98,18 @@ module.exports = {
console.log('inv error connecting to bot');
this.whisper('Bot is not available right now, try again in 30 seconds.');
}
var clear = setTimeout(()=> bot.quit(), 10000);
var clear = setTimeout(()=>{
bot.pluginUnload('Tp');
bot.quit()
}, 10000);
}
await bot.pluginLoad('Tp');
await bot.bot.chat(`/invite ${from}`);
await bot.whisper(from, `accept invite from ${bot.bot.entity.username} within 10 seconds...`);
bot.on('message', (message) =>{
bot.on('message', async (message) =>{
if(message.toString() === `${from} teleported to you.`){
await bot.pluginUnload('Tp');
if(clear){
clearTimeout(clear);
bot.quit();