1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 00:10:58 -05:00

Compare commits

..

No commits in common. "100a437e2a1f05a1b2d506f924cf78214f83cbf1" and "d0b6f3d152c4633bdd4e64e01c02e555158e939f" have entirely different histories.

2 changed files with 1 additions and 17 deletions

View File

@ -83,7 +83,6 @@ export default async(client:TClient,Channel:string,Message:string,ServerName:str
const serverLog = client.channels.resolve(client.config.mainServer.channels.fs_server_log) as Discord.TextChannel;
const playersOnServer = DSS.data.slots?.players.filter(x=>x.isUsed);
const playersInCache = client.MPServerCache.players;
if (!playersOnServer) return console.error('[MPLoop] Empty filter, ignoring...'); // For the love of god, stop throwing errors everytime.
playersOnServer.forEach(player=>playerData.push(`**${player.name} ${player.isAdmin ? '| admin' : ''}**\nFarming for ${client.formatPlayerUptime(player.uptime)}`));
ServerName = client.MPServerCache.name;

View File

@ -91,7 +91,6 @@ export default {
case 1: return 'Streaming';
case 2: return 'Listening to';
case 3: return 'Watching';
//case 4: return 'Custom Status'; // Will be enabled once PR #9743 on D.JS repo merges in.
case 5: return 'Competing in';
}
};
@ -128,14 +127,7 @@ export default {
else i.edit(`Successfully compiled TypeScript files into JavaScript!\nUptime before restarting: **${client.formatTime(client.uptime as number, 3, {commas: true, longNames: true})}**`).then(()=>exec('pm2 restart Daggerbot', {windowsHide:true}))
})
},
file: ()=>interaction.reply({files:[`./src/database/${interaction.options.getString('name')}.json`]}).catch(()=>'Filesize is too large, upload cancelled.'),
wake_device: async()=>{
const i = await interaction.reply({content: 'Spawning a task...', fetchReply: true});
exec(`cd "../../Desktop/System Tools/wakemeonlan" && WakeMeOnLan.exe /wakeup ${interaction.options.getString('name',true)}`, {windowsHide:true}, (err:Error)=>{
if (err) i.edit(removeUsername(err.message))
else i.edit('Your device should be awake by now!\n||Don\'t blame me if it isn\'t on.||')
})
}
file: ()=>interaction.reply({files:[`./src/database/${interaction.options.getString('name')}.json`]}).catch(()=>'Filesize is too large, upload cancelled.')
} as any)[interaction.options.getSubcommand()]();
},
data: new Discord.SlashCommandBuilder()
@ -157,13 +149,6 @@ export default {
.addSubcommand(x=>x
.setName('update')
.setDescription('Pull from repository and restart'))
.addSubcommand(x=>x
.setName('wake_device')
.setDescription('Remotely wake up a device in the same network as the bot')
.addStringOption(x=>x
.setName('name')
.setDescription('Device name')
.setRequired(true)))
.addSubcommand(x=>x
.setName('statsgraph')
.setDescription('Edit the number of data points to pull')