add logon command
This commit is contained in:
parent
39590ffefa
commit
e4f0f6db88
@ -15,11 +15,36 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
'say': {
|
'say': {
|
||||||
desc: `Make the bot say stuff in chat`,
|
desc: `Make the bot say stuff in chat`,
|
||||||
allowed: ['wmantly', 'useless666', 'tux4242'],
|
allowed: ['wmantly', 'useless666', 'tux4242', 'pi_chef', '1_cut',],
|
||||||
ignoreLock: true,
|
ignoreLock: true,
|
||||||
async function(from, ...messages){
|
async function(from, ...messages){
|
||||||
await this.say((messages || []).join(' '));
|
await this.say((messages || []).join(' '));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
'logon': {
|
||||||
|
desc: `Have bot log on for 10 seconds'`,
|
||||||
|
allowed: ['wmantly', 'useless666', 'tux4242', 'pi_chef', '1_cut',],
|
||||||
|
ignoreLock: true,
|
||||||
|
async function(from, botName){
|
||||||
|
this.__unLockCommand();
|
||||||
|
|
||||||
|
if(botName in his.constructor.bots){
|
||||||
|
let bot = this.constructor.bots[botName];
|
||||||
|
|
||||||
|
if(!bot.isReady){
|
||||||
|
try{
|
||||||
|
await bot.connect();
|
||||||
|
var clear = setTimeout(()=> bot.quit(), 10000);
|
||||||
|
bot.whisper(from, 'I am ready')
|
||||||
|
}catch(error){
|
||||||
|
console.log('inv error connecting to bot');
|
||||||
|
this.whisper('Bot is not available right now, try again in 30 seconds.');
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
await this.whisper(from, `Bot ${bot.bot.entity.username} Already online`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
@ -25,17 +25,17 @@ let sites = {
|
|||||||
fo: {
|
fo: {
|
||||||
bot: 'jimin',
|
bot: 'jimin',
|
||||||
desc: `Get an invite to the Farming outpost.`,
|
desc: `Get an invite to the Farming outpost.`,
|
||||||
allowed: ['wmantly', 'useless666', 'tux4242', 'pi_chef', 'pi_chef', '1_cut', 'nootbot', 'VinceNL', 'Ethan63020', 'Ethan63021', 'KimiKava', 'kawiimeowz', 'RaindropCake24', 'AndyNyg', 'AndyNyg_II'],
|
allowed: ['wmantly', 'useless666', 'tux4242', 'pi_chef', '1_cut', 'nootbot', 'VinceNL', 'Ethan63020', 'Ethan63021', 'KimiKava', 'kawiimeowz', 'RaindropCake24', 'AndyNyg', 'AndyNyg_II'],
|
||||||
},
|
},
|
||||||
guardian: {
|
guardian: {
|
||||||
bot: 'art',
|
bot: 'art',
|
||||||
desc: 'blah',
|
desc: 'blah',
|
||||||
allowed: ['wmantly', 'useless666', 'tux4242', 'pi_chef', 'pi_chef', '1_cut', 'Ethan63020', 'Ethan63021', 'VinceNL', 'nootbot'],
|
allowed: ['wmantly', 'useless666', 'tux4242', 'pi_chef', '1_cut', 'Ethan63020', 'Ethan63021', 'VinceNL', 'nootbot'],
|
||||||
},
|
},
|
||||||
fo2: {
|
fo2: {
|
||||||
bot: 'henry',
|
bot: 'henry',
|
||||||
desc: `Get an invite to the Farming outpost 2.`,
|
desc: `Get an invite to the Farming outpost 2.`,
|
||||||
allowed: ['wmantly', 'useless666', 'tux4242', 'pi_chef', 'pi_chef', '1_cut', 'Ethan63020', 'Ethan63021', 'VinceNL', 'nootbot'],
|
allowed: ['wmantly', 'useless666', 'tux4242', 'pi_chef', '1_cut', 'Ethan63020', 'Ethan63021', 'VinceNL', 'nootbot'],
|
||||||
},
|
},
|
||||||
foend: {
|
foend: {
|
||||||
bot: 'ez',
|
bot: 'ez',
|
||||||
@ -45,12 +45,12 @@ let sites = {
|
|||||||
sb: {
|
sb: {
|
||||||
bot: 'owen',
|
bot: 'owen',
|
||||||
desc: `Get an invite to the Sky Base.`,
|
desc: `Get an invite to the Sky Base.`,
|
||||||
allowed: ['wmantly', 'useless666', 'tux4242', 'pi_chef', 'pi_chef', '1_cut', 'Ethan63020', 'Ethan63021', 'VinceNL', 'nootbot'],
|
allowed: ['wmantly', 'useless666', 'tux4242', 'pi_chef', '1_cut', 'Ethan63020', 'Ethan63021', 'VinceNL', 'nootbot'],
|
||||||
},
|
},
|
||||||
core: {
|
core: {
|
||||||
bot: 'nova',
|
bot: 'nova',
|
||||||
desc: `Get an invite to the Core.`,
|
desc: `Get an invite to the Core.`,
|
||||||
allowed: ['wmantly', 'useless666', 'tux4242', 'pi_chef', 'pi_chef', '1_cut', 'Ethan63020', 'Ethan63021', 'VinceNL', 'nootbot', 'AndyNyg', 'AndyNyg_II','Lost_Imback', 'KimiKava', 'kawiimeowz', 'RaindropCake24',],
|
allowed: ['wmantly', 'useless666', 'tux4242', 'pi_chef', '1_cut', 'Ethan63020', 'Ethan63021', 'VinceNL', 'nootbot', 'AndyNyg', 'AndyNyg_II','Lost_Imback', 'KimiKava', 'kawiimeowz', 'RaindropCake24',],
|
||||||
},
|
},
|
||||||
art: {
|
art: {
|
||||||
bot: 'art',
|
bot: 'art',
|
||||||
@ -75,7 +75,7 @@ function getSiteFromBot(name){
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
'.invite': {
|
'.invite': {
|
||||||
desc: `The bot will /accept an /invite from you.`,
|
desc: `The bot will /accept an /invite from you.`,
|
||||||
allowed: ['wmantly', 'useless666', 'tux4242', 'owenshorts', 'pi_chef'],
|
allowed: ['wmantly', 'useless666', 'tux4242', 'owenshorts', 'pi_chef', '1_cut',],
|
||||||
ignoreLock: true,
|
ignoreLock: true,
|
||||||
async function(from){
|
async function(from){
|
||||||
await this.whisper('Coming');
|
await this.whisper('Coming');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user