forked from wmantly/mc-bot-town
removed idea from commands
This commit is contained in:
@ -34,19 +34,7 @@ class CJbot{
|
||||
|
||||
connect(){
|
||||
return new Promise((resolve, reject) =>{
|
||||
// let cancle = setTimeout(()=>{
|
||||
// reject('TimeOut')
|
||||
// }, 10000)
|
||||
|
||||
// resolve = (...args)=>{
|
||||
// clearTimeout(cancle);
|
||||
// return resolve(...args);
|
||||
// }
|
||||
|
||||
// reject = (...args)=>{
|
||||
// // clearTimeout(cancle);
|
||||
// return reject(...args);
|
||||
// }
|
||||
this.bot = mineflayer.createBot({
|
||||
host: this.host,
|
||||
username: this.username,
|
||||
@ -189,6 +177,8 @@ class CJbot{
|
||||
// teleport invite
|
||||
|
||||
// console.log('ChatBot on message', message.toString())
|
||||
|
||||
console.log('found teleport', message.toString().split(' ')[0])
|
||||
this.__doCommand(message.toString().split(' ')[0], '.invite');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user