mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
Compare commits
3 Commits
b15a1e60c0
...
51f6e78f24
Author | SHA1 | Date | |
---|---|---|---|
|
51f6e78f24 | ||
|
54262177ab | ||
|
3241647d1e |
@ -18,7 +18,7 @@ export default {
|
||||
output = await eval(code);
|
||||
} catch (err: any) {
|
||||
error = true
|
||||
const embed = new client.embed().setColor('#ff0000').setTitle('__Eval__').addFields(
|
||||
const embed = new client.embed().setColor('#630D12').setTitle('__Eval__').addFields(
|
||||
{name: 'Input', value: `\`\`\`js\n${code.slice(0, 1010)}\n\`\`\``},
|
||||
{name: 'Output', value: `\`\`\`\n${err}\`\`\``}
|
||||
)
|
||||
|
@ -12,7 +12,7 @@ const serverChoices = [
|
||||
|
||||
export default {
|
||||
async run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){
|
||||
if (client.uptime < 30000) return interaction.reply('I have just restarted, please wait for MPLoop to finish initializing.')
|
||||
if (client.uptime < 35000) return interaction.reply('I have just restarted, please wait for MPLoop to finish initializing.')
|
||||
const serverSelector = interaction.options.getString('server');
|
||||
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));
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import Discord from 'discord.js';
|
||||
import TClient from 'src/client';
|
||||
import TClient from '../client.js';
|
||||
|
||||
/* function ResponseMadeBy(id:string){ <-- Will be enabled once autoresponse suggestion comes in.
|
||||
return `╰ *Response made by <@${id}>*`;
|
||||
|
Loading…
Reference in New Issue
Block a user