mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
attempt to fix maintenance cmd
This commit is contained in:
parent
d5476fb9c3
commit
e86dc7a83c
@ -17,7 +17,7 @@ export default {
|
|||||||
if (interaction.channelId === '468835769092669461' && !client.isStaff(interaction.member) && ['status', 'players'].includes(interaction.options.getSubcommand())) return interaction.reply('Please use <#739084625862852715> for `/mp status/players` commands to prevent clutter in this channel.').then(()=>setTimeout(()=>interaction.deleteReply(), 6000));
|
if (interaction.channelId === '468835769092669461' && !client.isStaff(interaction.member) && ['status', 'players'].includes(interaction.options.getSubcommand())) return interaction.reply('Please use <#739084625862852715> for `/mp status/players` commands to prevent clutter in this channel.').then(()=>setTimeout(()=>interaction.deleteReply(), 6000));
|
||||||
|
|
||||||
const database = await client.MPServer._content.findById(interaction.guildId);
|
const database = await client.MPServer._content.findById(interaction.guildId);
|
||||||
const endpoint = await fetch(database[serverSelector].ip+'/feed/dedicated-server-stats.json?code='+database[serverSelector].code, {signal: AbortSignal.timeout(7500),headers:{'User-Agent':`Daggerbot - MPdata/fetch`}}).then(r=>r.json() as Promise<FSData>);
|
const endpoint = await fetch(database[serverSelector]?.ip+'/feed/dedicated-server-stats.json?code='+database[serverSelector]?.code, {signal: AbortSignal.timeout(7500),headers:{'User-Agent':`Daggerbot - MPdata/fetch`}}).then(r=>r.json() as Promise<FSData>);
|
||||||
const embed = new client.embed();
|
const embed = new client.embed();
|
||||||
({
|
({
|
||||||
players: async()=>{
|
players: async()=>{
|
||||||
|
Loading…
Reference in New Issue
Block a user