diff --git a/.github/ISSUE_TEMPLATE/---bug-report.md b/.github/ISSUE_TEMPLATE/---bug-report.md index b3f5d31..30d68fc 100644 --- a/.github/ISSUE_TEMPLATE/---bug-report.md +++ b/.github/ISSUE_TEMPLATE/---bug-report.md @@ -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 -### Additional context/Screenshots +## Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain. diff --git a/.github/ISSUE_TEMPLATE/---emoji-request.md b/.github/ISSUE_TEMPLATE/---emoji-request.md index 49cf838..f58f951 100644 --- a/.github/ISSUE_TEMPLATE/---emoji-request.md +++ b/.github/ISSUE_TEMPLATE/---emoji-request.md @@ -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):** diff --git a/.github/ISSUE_TEMPLATE/---feature-request.md b/.github/ISSUE_TEMPLATE/---feature-request.md index 2228fe1..d6a6eb1 100644 --- a/.github/ISSUE_TEMPLATE/---feature-request.md +++ b/.github/ISSUE_TEMPLATE/---feature-request.md @@ -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? diff --git a/.github/PULL_REQUEST_TEMPLATE/feature.md b/.github/PULL_REQUEST_TEMPLATE/feature.md new file mode 100644 index 0000000..8c46621 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/feature.md @@ -0,0 +1,19 @@ +--- +title: '[FEATURE] - Feature title' +labels: enhancement +assignees: 'LucasCtrl' +--- + +Fixes # . + +## Added +* +* + +## Fixed/Modified +* +* + +## Deleted +* +* diff --git a/.github/PULL_REQUEST_TEMPLATE/release.md b/.github/PULL_REQUEST_TEMPLATE/release.md new file mode 100644 index 0000000..490a426 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/release.md @@ -0,0 +1,19 @@ +--- +title: '[Release] - vXX.XX.XX' +labels: release +assignees: 'LucasCtrl' +--- + +Fixes # . + +## Added +* +* + +## Fixed/Modified +* +* + +## Deleted +* +* diff --git a/.github/PULL_REQUEST_TEMPLATE/translation.md b/.github/PULL_REQUEST_TEMPLATE/translation.md new file mode 100644 index 0000000..65b9b57 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/translation.md @@ -0,0 +1,7 @@ +--- +title: '[Translation] - LANGUAGE translation' +labels: translation +assignees: 'LucasCtrl' +--- + +This PR add *language* support. diff --git a/commands/Configuration/setlang.js b/commands/Configuration/setlang.js index 0057b81..ca6f9b0 100644 --- a/commands/Configuration/setlang.js +++ b/commands/Configuration/setlang.js @@ -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)) }, } diff --git a/commands/Info/help.js b/commands/Info/help.js index 07fc505..3b8d8e5 100644 --- a/commands/Info/help.js +++ b/commands/Info/help.js @@ -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)) }, } diff --git a/commands/Info/invite.js b/commands/Info/invite.js index a17a214..87c49de 100644 --- a/commands/Info/invite.js +++ b/commands/Info/invite.js @@ -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)) }, } diff --git a/commands/Info/ping.js b/commands/Info/ping.js index 4098614..c44e9dd 100644 --- a/commands/Info/ping.js +++ b/commands/Info/ping.js @@ -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)) }, } diff --git a/commands/Info/stats.js b/commands/Info/stats.js index 2eb143e..b62c835 100644 --- a/commands/Info/stats.js +++ b/commands/Info/stats.js @@ -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)) }, } diff --git a/commands/Info/support.js b/commands/Info/support.js index 4b9e46f..d21f4db 100644 --- a/commands/Info/support.js +++ b/commands/Info/support.js @@ -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)) }, } diff --git a/commands/Info/vote.js b/commands/Info/vote.js index 35d61ac..b2eac81 100644 --- a/commands/Info/vote.js +++ b/commands/Info/vote.js @@ -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)) }, }