-
-
Notifications
You must be signed in to change notification settings - Fork 3
Extensions
Habib Rohman edited this page Jun 27, 2020
·
1 revision
Using Minetelegram.addCommand('name', function, 'info')
method.
Example
const minetelegram = createMinetelegram(minetelegramOptions)
function sayHi (ctx) {
// get current & selected minecraft instance
let bot = ctx.db.getBot()
return bot.chat('Hi!')
}
minetelegram.addCommand('hi', sayHi, 'Send Hi! to chat')
const bot = minetelegram.createBot({
host: 'localhost', // optional
port: 25565, // optional
username: '[email protected]', // email and password are required only for
password: '12345678', // online-mode=true servers
version: false // false corresponds to auto version detection (that's the default), put for example '1.8.8' if you need a specific version
})
minetelegram.launch()
Wiki of minetelegram © Copyright 2020