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

Compare commits

...

3 Commits

Author SHA1 Message Date
Toast
51f6e78f24
Fix client import 2023-08-28 21:24:59 +10:00
Toast
54262177ab
Update mp.ts 2023-08-28 21:17:27 +10:00
Toast
3241647d1e
Darken the red color
bright colors is blinding me, send help
2023-08-28 20:54:39 +10:00
3 changed files with 3 additions and 3 deletions

View File

@ -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}\`\`\``}
)

View File

@ -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));

View File

@ -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}>*`;