Skip to content

Commit

Permalink
🔖 v2.2.1
Browse files Browse the repository at this point in the history
[Release] - v2.2.1
  • Loading branch information
LucasCtrl committed Oct 19, 2021
2 parents fd6ab87 + 7110f95 commit 0e7a7b3
Show file tree
Hide file tree
Showing 13 changed files with 84 additions and 35 deletions.
14 changes: 7 additions & 7 deletions .github/ISSUE_TEMPLATE/---bug-report.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
---
name: "\U0001F41B Bug Report"
about: "If something isn't working as expected \U0001F914"
title: ''
title: '[ISSUE] - Issue title'
labels: bug
assignees: ''
assignees: 'LucasCtrl'
---

## Bug Report
# Bug Report

### Current Behavior
## Current Behavior
A clear and concise description of the behavior.

### Expected behavior/code
## Expected behavior/code
A clear and concise description of what you expected to happen (or code).

### Possible Solution
## Possible Solution
<!--- Only if you have suggestions on a fix for the bug -->

### Additional context/Screenshots
## Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/---emoji-request.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
name: "Emoji request"
about: "I would like to add a new emoji in the list"
title: ''
labels: question
assignees: ''
title: 'Emoji request'
labels: question, translation
assignees: 'LucasCtrl'
---

## Emoji request
# Emoji request

**Emoji:**
**Potential ID(s):**
14 changes: 7 additions & 7 deletions .github/ISSUE_TEMPLATE/---feature-request.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
name: "\U0001F680 Feature Request"
about: "I have a suggestion (and may want to implement it \U0001F642)!"
title: ''
title: '[FEATURE] - Feature title'
labels: enhancement
assignees: ''
assignees: 'LucasCtrl'
---

## Feature Request
# Feature Request

### Is your feature request related to a problem? Please describe.
## Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I have an issue when [...]

### Describe the solution you'd like
## Describe the solution you'd like
A clear and concise description of what you want to happen. Add any considered drawbacks.

### Describe alternatives you've considered
## Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

### Teachability, Documentation, Adoption, Migration Strategy
## Teachability, Documentation, Adoption, Migration Strategy
If you can, explain how users will be able to use this and possibly write out a version the docs.
Maybe a screenshot or design?
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: '[FEATURE] - Feature title'
labels: enhancement
assignees: 'LucasCtrl'
---

Fixes # .

## Added
*
*

## Fixed/Modified
*
*

## Deleted
*
*
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: '[Release] - vXX.XX.XX'
labels: release
assignees: 'LucasCtrl'
---

Fixes # .

## Added
*
*

## Fixed/Modified
*
*

## Deleted
*
*
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/translation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: '[Translation] - LANGUAGE translation'
labels: translation
assignees: 'LucasCtrl'
---

This PR add *language* support.
8 changes: 5 additions & 3 deletions commands/Configuration/setlang.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ export default {
)
}

message.channel.send({ embeds: [embed] }).then((m) => {
setTimeout(() => m.delete().catch((err) => console.log('Error while deleting the message: ', err)), 20000)
})
message.channel.send({ embeds: [embed] })
.then((m) => {
setTimeout(() => m.delete().catch((err) => console.log('Error while deleting the message: ', err)), 20000)
})
.catch((err) => console.log('Error while sending the message: ', err))
},
}
2 changes: 1 addition & 1 deletion commands/Info/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export default {
}
})

message.channel.send({ embeds: [embed] })
message.channel.send({ embeds: [embed] }).catch((err) => console.log('Error while sending the message: ', err))
},
}
2 changes: 1 addition & 1 deletion commands/Info/invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export default {
'You can click on the following link to add the bot on your server: [https://discord.com/oauth2/authorize?client_id=761568927188123669&scope=bot&permissions=380108139840](https://discord.com/oauth2/authorize?client_id=761568927188123669&scope=bot&permissions=380108139840)'
)

message.channel.send({ embeds: [embed] })
message.channel.send({ embeds: [embed] }).catch((err) => console.log('Error while sending the message: ', err))
},
}
20 changes: 11 additions & 9 deletions commands/Info/ping.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ export default {
run: async (client, message) => {
const beforePing = new MessageEmbed().setColor(client.config.colors.primary).setDescription('Pinging...')

message.channel.send({ embeds: [beforePing] }).then((m) => {
let ping = m.createdTimestamp - message.createdTimestamp
message.channel.send({ embeds: [beforePing] })
.then((m) => {
let ping = m.createdTimestamp - message.createdTimestamp

const afterPing = new MessageEmbed()
.setColor(client.config.colors.primary)
.setDescription(
`Pong! :ping_pong:\nBot Latency: \`${ping}ms\`, API Latency: \`${Math.round(client.ws.ping)}ms\``
)
const afterPing = new MessageEmbed()
.setColor(client.config.colors.primary)
.setDescription(
`Pong! :ping_pong:\nBot Latency: \`${ping}ms\`, API Latency: \`${Math.round(client.ws.ping)}ms\``
)

m.edit({ embeds: [afterPing] })
})
m.edit({ embeds: [afterPing] })
})
.catch((err) => console.log('Error while sending the message: ', err))
},
}
2 changes: 1 addition & 1 deletion commands/Info/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ export default {
.addField('Memory usage ¬', `${Math.ceil(memoryStats.heapUsed / 1048576)} Mo`, true)
.setFooter(`Requested by ${message.author.username}`, message.author.avatarURL({ dynamic: true }))

message.channel.send({ embeds: [embed] })
message.channel.send({ embeds: [embed] }).catch((err) => console.log('Error while sending the message: ', err))
},
}
2 changes: 1 addition & 1 deletion commands/Info/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export default {
'You can click on the following link to join the support server: [https://discord.gg/nEDcagb](https://discord.gg/nEDcagb)'
)

message.channel.send({ embeds: [embed] })
message.channel.send({ embeds: [embed] }).catch((err) => console.log('Error while sending the message: ', err))
},
}
2 changes: 1 addition & 1 deletion commands/Info/vote.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export default {
'You can vote for the bot by clicking on the following link: [https://discordbotlist.com/bots/spookybot/upvote](https://discordbotlist.com/bots/spookybot/upvote)'
)

message.channel.send({ embeds: [embed] })
message.channel.send({ embeds: [embed] }).catch((err) => console.log('Error while sending the message: ', err))
},
}

0 comments on commit 0e7a7b3

Please sign in to comment.