plugins
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user