mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 16:30:58 -05:00
Compare commits
2 Commits
b247a0957b
...
cd99b7f856
Author | SHA1 | Date | |
---|---|---|---|
|
cd99b7f856 | ||
|
c53841f0e6 |
@ -67,8 +67,8 @@ export default class Developer {
|
|||||||
`Message: **${repoData.commit.message.length === 0 ? '*No commit message*' : repoData.commit.message}**`,
|
`Message: **${repoData.commit.message.length === 0 ? '*No commit message*' : repoData.commit.message}**`,
|
||||||
`Author: **${repoData.commit.author.name}**`,
|
`Author: **${repoData.commit.author.name}**`,
|
||||||
'Changes',
|
'Changes',
|
||||||
`╰ ${commitStats.addition.length > 1 ? `Additions:` : 'Addition:'} **${commitStats.addition}**`,
|
`╰ Additions: **${commitStats.addition}**`,
|
||||||
`╰ ${commitStats.deletion.length > 1 ? `Deletions:` : 'Deletion:'} **${commitStats.deletion}**`,
|
`╰ Deletions: **${commitStats.deletion}**`,
|
||||||
`╰ Total: **${commitStats.total}**`
|
`╰ Total: **${commitStats.total}**`
|
||||||
);
|
);
|
||||||
exec('git pull', {windowsHide:true}, (err:Error, stdout)=>{
|
exec('git pull', {windowsHide:true}, (err:Error, stdout)=>{
|
||||||
|
@ -44,7 +44,7 @@ export default class MessageCreate {
|
|||||||
cantRead: ['i cant read', 'i can\'t read', 'cant read', 'can\'t read'],
|
cantRead: ['i cant read', 'i can\'t read', 'cant read', 'can\'t read'],
|
||||||
theyBrokeIt: ['break', 'broke', 'broken'],
|
theyBrokeIt: ['break', 'broke', 'broken'],
|
||||||
deadChat: ['dead chat', 'chat is dead', 'dead server', 'inactive chat', 'inactive channel'],
|
deadChat: ['dead chat', 'chat is dead', 'dead server', 'inactive chat', 'inactive channel'],
|
||||||
mpsrv: ['is anyone online', 'is the server up']
|
mpsrv: ['is anyone online', 'is the server up', 'is anyone going on']
|
||||||
}
|
}
|
||||||
const outgoingArrays = {
|
const outgoingArrays = {
|
||||||
guildBoost: ['Thanks for boosting our server!', 'Thanks for the boost!', 'We appreciate the boost!', `Thank you for the kind boost, <@${message.author.id}>!`],
|
guildBoost: ['Thanks for boosting our server!', 'Thanks for the boost!', 'We appreciate the boost!', `Thank you for the kind boost, <@${message.author.id}>!`],
|
||||||
@ -83,7 +83,7 @@ export default class MessageCreate {
|
|||||||
if (incomingArrays.cantRead.some(e=>message.content.toLowerCase().includes(e))) message.reply(picStorage.cantRead);
|
if (incomingArrays.cantRead.some(e=>message.content.toLowerCase().includes(e))) message.reply(picStorage.cantRead);
|
||||||
if (message.content.toLowerCase().includes('is daggerbot working')) message.reply(picStorage.amAlive);
|
if (message.content.toLowerCase().includes('is daggerbot working')) message.reply(picStorage.amAlive);
|
||||||
if (incomingArrays.deadChat.some(e=>message.content.toLowerCase().includes(e))) message.reply(picStorage.deadChat);
|
if (incomingArrays.deadChat.some(e=>message.content.toLowerCase().includes(e))) message.reply(picStorage.deadChat);
|
||||||
if (message.channelId === '543494084363288637' && incomingArrays.mpsrv.some(e=>message.content.toLowerCase().includes(e))) message.reply('You can take a look at the embeds in <#543494084363288637> to see if anyone is on the server.');
|
if (message.channelId === '468835769092669461' && incomingArrays.mpsrv.some(e=>message.content.toLowerCase().includes(e))) message.reply('You can take a look at the embeds in <#543494084363288637> to see if anyone is on the server.');
|
||||||
|
|
||||||
for (const thisPerson of ModsGoGetThisPerson) {
|
for (const thisPerson of ModsGoGetThisPerson) {
|
||||||
if (incomingArrays.theyBrokeIt.some(x=>Automoderator.scanMsg(message).includes(x) && Automoderator.scanMsg(message).includes(thisPerson.user)) && MessageTool.isStaff(message.member) && message.channelId !== client.config.dcServer.channels.mpmod_chat)
|
if (incomingArrays.theyBrokeIt.some(x=>Automoderator.scanMsg(message).includes(x) && Automoderator.scanMsg(message).includes(thisPerson.user)) && MessageTool.isStaff(message.member) && message.channelId !== client.config.dcServer.channels.mpmod_chat)
|
||||||
|
Loading…
Reference in New Issue
Block a user