7.6
This commit is contained in:
1 parent
da7b6d487c
commit
5e38573aed
12 files changed
+751
-145
No files matched your search
@@ -1,40 +0,0 @@
|
|||||||
---
|
|
||||||
name: "\U0001F41B Bug report"
|
|
||||||
about: Create a report to help us improve
|
|
||||||
title: "[BUG]"
|
|
||||||
labels: Bug
|
|
||||||
assignees: ""
|
|
||||||
---
|
|
||||||
|
|
||||||
**Describe the bug**
|
|
||||||
A clear and concise description of what the bug is.
|
|
||||||
|
|
||||||
**To Reproduce**
|
|
||||||
Steps to reproduce the behavior:
|
|
||||||
|
|
||||||
1. Go to '...'
|
|
||||||
2. Click on '....'
|
|
||||||
3. Scroll down to '....'
|
|
||||||
4. See error
|
|
||||||
|
|
||||||
**Expected behavior**
|
|
||||||
A clear and concise description of what you expected to happen.
|
|
||||||
|
|
||||||
**Screenshots**
|
|
||||||
If applicable, add screenshots to help explain your problem.
|
|
||||||
|
|
||||||
**Desktop (please complete the following information):**
|
|
||||||
|
|
||||||
- OS: [e.g. iOS]
|
|
||||||
- Browser [e.g. chrome, safari]
|
|
||||||
- Version [e.g. 22]
|
|
||||||
|
|
||||||
**Smartphone (please complete the following information):**
|
|
||||||
|
|
||||||
- Device: [e.g. iPhone6]
|
|
||||||
- OS: [e.g. iOS8.1]
|
|
||||||
- Browser [e.g. stock browser, safari]
|
|
||||||
- Version [e.g. 22]
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context about the problem here.
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
---
|
|
||||||
name: "❓Suggest an Idea?"
|
|
||||||
about: Suggest an idea for SupportBot?
|
|
||||||
title: "[SUGGESTION]"
|
|
||||||
labels: Suggestion
|
|
||||||
assignees: ""
|
|
||||||
---
|
|
||||||
|
|
||||||
**Is your feature request related to a problem? Please describe.**
|
|
||||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
||||||
|
|
||||||
**Describe the solution you'd like**
|
|
||||||
A clear and concise description of what you want to happen.
|
|
||||||
|
|
||||||
**Describe alternatives you've considered**
|
|
||||||
A clear and concise description of any alternative solutions or features you've considered.
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context or screenshots about the feature request here.
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
# This workflow will do a clean installation of node dependencies, build the source code and run tests across different versions of node
|
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
||||||
|
|
||||||
name: Node.js CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [dev, release]
|
|
||||||
pull_request:
|
|
||||||
branches: [dev, release]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [16.x, 17.x]
|
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm test
|
|
||||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
@@ -10,7 +10,7 @@
|
|||||||
# Discord Support: https://emeraldsrv.dev/discord
|
# Discord Support: https://emeraldsrv.dev/discord
|
||||||
# Community Resources: https://emeraldsrv.dev/resources
|
# Community Resources: https://emeraldsrv.dev/resources
|
||||||
|
|
||||||
SupportBot_Version: "BETA 7.6"
|
SupportBot_Version: "7.6"
|
||||||
|
|
||||||
# -------------------------
|
# -------------------------
|
||||||
# General Configuration
|
# General Configuration
|
||||||
@@ -68,6 +68,9 @@ TicketBlackListRole: "Blacklisted"
|
|||||||
# Join/Leave Configuration
|
# Join/Leave Configuration
|
||||||
# ----------------------------
|
# ----------------------------
|
||||||
|
|
||||||
|
Welcome: true
|
||||||
|
# set to false to disable joining logs
|
||||||
|
|
||||||
WelcomeChannel: "join-leave-logs"
|
WelcomeChannel: "join-leave-logs"
|
||||||
WelcomeColour: "#f74343"
|
WelcomeColour: "#f74343"
|
||||||
WelcomeTitle: "User Joined!"
|
WelcomeTitle: "User Joined!"
|
||||||
@@ -83,6 +86,9 @@ EmbedWelcomeThumbnail: "BOT"
|
|||||||
# "BOT" will display the bot's profile picture.
|
# "BOT" will display the bot's profile picture.
|
||||||
# false to disable
|
# false to disable
|
||||||
|
|
||||||
|
Leave: true
|
||||||
|
# set to false to disable leaving logs
|
||||||
|
|
||||||
LeaveChannel: "join-leave-logs"
|
LeaveChannel: "join-leave-logs"
|
||||||
LeaveColour: "#f74343"
|
LeaveColour: "#f74343"
|
||||||
LeaveTitle: "User Left!"
|
LeaveTitle: "User Left!"
|
||||||
|
|||||||
+27
-23
@@ -8,35 +8,39 @@ const supportbot = yaml.load(
|
|||||||
);
|
);
|
||||||
|
|
||||||
module.exports = new Event("guildMemberAdd", async (client, member, interaction, guild) => {
|
module.exports = new Event("guildMemberAdd", async (client, member, interaction, guild) => {
|
||||||
const WelcomeChannel = member.guild.channels.cache.find(channel => channel.name === supportbot.WelcomeChannel)
|
|
||||||
|
|
||||||
const WelcomeEmbed = new Discord.MessageEmbed()
|
if (supportbot.Welcome) {
|
||||||
.setColor(supportbot.WelcomeColour)
|
const WelcomeChannel = member.guild.channels.cache.find(channel => channel.name === supportbot.WelcomeChannel)
|
||||||
.setTitle(supportbot.WelcomeTitle)
|
|
||||||
.setDescription(supportbot.WelcomeMessage.replace(/%joined_user%/g, member.user))
|
|
||||||
.setTimestamp();
|
|
||||||
|
|
||||||
if (supportbot.EmbedWelcomeThumbnail === "BOT") {
|
const WelcomeEmbed = new Discord.MessageEmbed()
|
||||||
WelcomeEmbed.setThumbnail(client.user.displayAvatarURL())
|
.setColor(supportbot.WelcomeColour)
|
||||||
}
|
.setTitle(supportbot.WelcomeTitle)
|
||||||
|
.setDescription(supportbot.WelcomeMessage.replace(/%joined_user%/g, member.user))
|
||||||
|
.setTimestamp();
|
||||||
|
|
||||||
if (supportbot.EmbedWelcomeThumbnail === "USER") {
|
if (supportbot.EmbedWelcomeThumbnail === "BOT") {
|
||||||
WelcomeEmbed.setThumbnail(member.user.displayAvatarURL())
|
WelcomeEmbed.setThumbnail(client.user.displayAvatarURL())
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supportbot.EmbedWelcomeImage) {
|
if (supportbot.EmbedWelcomeThumbnail === "USER") {
|
||||||
WelcomeEmbed.setImage(supportbot.EmbedWelcomeImageURL)
|
WelcomeEmbed.setThumbnail(member.user.displayAvatarURL())
|
||||||
}
|
}
|
||||||
|
|
||||||
WelcomeChannel.send({
|
if (supportbot.EmbedWelcomeImage) {
|
||||||
embeds: [WelcomeEmbed]
|
WelcomeEmbed.setImage(supportbot.EmbedWelcomeImageURL)
|
||||||
})
|
}
|
||||||
|
|
||||||
if (supportbot.AutoRole) {
|
WelcomeChannel.send({
|
||||||
var role = member.guild.roles.cache.find(role => role.name === supportbot.JoinRole);
|
embeds: [WelcomeEmbed]
|
||||||
member.roles.add(role);
|
})
|
||||||
}
|
|
||||||
|
|
||||||
console.log(`\u001b[32m`, `[+]`, `\u001b[33m`, `${member.user.username} joined the server!`)
|
if (supportbot.AutoRole) {
|
||||||
|
var role = member.guild.roles.cache.find(role => role.name === supportbot.JoinRole);
|
||||||
|
member.roles.add(role);
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(`\u001b[32m`, `[+]`, `\u001b[33m`, `${member.user.username} joined the server!`)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
+22
-19
@@ -8,31 +8,34 @@ const supportbot = yaml.load(
|
|||||||
);
|
);
|
||||||
|
|
||||||
module.exports = new Event("guildMemberRemove", async (client, member, interaction, guild) => {
|
module.exports = new Event("guildMemberRemove", async (client, member, interaction, guild) => {
|
||||||
const LeaveChannel = member.guild.channels.cache.find(channel => channel.name === supportbot.LeaveChannel)
|
|
||||||
|
|
||||||
const LeaveEmbed = new Discord.MessageEmbed()
|
if (supportbot.Leave) {
|
||||||
.setColor(supportbot.LeaveColour)
|
const LeaveChannel = member.guild.channels.cache.find(channel => channel.name === supportbot.LeaveChannel)
|
||||||
.setTitle(supportbot.LeaveTitle)
|
|
||||||
.setDescription(supportbot.LeaveMessage.replace(/%joined_user%/g, member.user))
|
|
||||||
.setTimestamp();
|
|
||||||
|
|
||||||
if (supportbot.EmbedLeaveThumbnail === "BOT") {
|
const LeaveEmbed = new Discord.MessageEmbed()
|
||||||
LeaveEmbed.setThumbnail(client.user.displayAvatarURL())
|
.setColor(supportbot.LeaveColour)
|
||||||
}
|
.setTitle(supportbot.LeaveTitle)
|
||||||
|
.setDescription(supportbot.LeaveMessage.replace(/%joined_user%/g, member.user))
|
||||||
|
.setTimestamp();
|
||||||
|
|
||||||
if (supportbot.EmbedLeaveThumbnail === "USER") {
|
if (supportbot.EmbedLeaveThumbnail === "BOT") {
|
||||||
LeaveEmbed.setThumbnail(member.user.displayAvatarURL())
|
LeaveEmbed.setThumbnail(client.user.displayAvatarURL())
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supportbot.EmbedLeaveImage) {
|
if (supportbot.EmbedLeaveThumbnail === "USER") {
|
||||||
LeaveEmbed.setImage(supportbot.EmbedLeaveImageURL)
|
LeaveEmbed.setThumbnail(member.user.displayAvatarURL())
|
||||||
}
|
}
|
||||||
|
|
||||||
LeaveChannel.send({
|
if (supportbot.EmbedLeaveImage) {
|
||||||
embeds: [LeaveEmbed]
|
LeaveEmbed.setImage(supportbot.EmbedLeaveImageURL)
|
||||||
})
|
}
|
||||||
|
|
||||||
console.log(`\u001b[31m`, `[-]`, `\u001b[33m`, `${member.user.username} joined the server!`)
|
LeaveChannel.send({
|
||||||
|
embeds: [LeaveEmbed]
|
||||||
|
})
|
||||||
|
|
||||||
|
console.log(`\u001b[31m`, `[-]`, `\u001b[33m`, `${member.user.username} joined the server!`)
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
+5
-9
@@ -34,7 +34,7 @@ module.exports = new Event("ready", async (client, interaction) => {
|
|||||||
console.log(` `);
|
console.log(` `);
|
||||||
console.log(
|
console.log(
|
||||||
`\u001b[33m`,
|
`\u001b[33m`,
|
||||||
`${supportbot.Name} v${supportbot.SupportBot_Version}`,
|
`${supportbot.Name} | v${supportbot.SupportBot_Version}`,
|
||||||
`\u001b[36m`,
|
`\u001b[36m`,
|
||||||
`Connected to Discord`
|
`Connected to Discord`
|
||||||
);
|
);
|
||||||
@@ -74,14 +74,10 @@ module.exports = new Event("ready", async (client, interaction) => {
|
|||||||
console.log(`\u001b[37m`, `SupportBot proudly created by Emerald Services`);
|
console.log(`\u001b[37m`, `SupportBot proudly created by Emerald Services`);
|
||||||
console.log(` `);
|
console.log(` `);
|
||||||
console.log(`\u001b[31m`, `――――――――――――――――――――――――――――――――――――――――――――`);
|
console.log(`\u001b[31m`, `――――――――――――――――――――――――――――――――――――――――――――`);
|
||||||
if (client.guilds.cache.size !== 1) {
|
|
||||||
console.log(
|
|
||||||
`\u001b[31m`,
|
|
||||||
`${client.user.username} must be in only 1 server. Please join this server, leave any others, and restart the bot.`
|
|
||||||
);
|
|
||||||
console.log(`\u001b[31m`, `${client.user.username} will now exit.`);
|
|
||||||
return process.exit(1);
|
|
||||||
}
|
|
||||||
const roles = [
|
const roles = [
|
||||||
supportbot.Admin,
|
supportbot.Admin,
|
||||||
supportbot.Staff,
|
supportbot.Staff,
|
||||||
|
|||||||
Generated
+688
-5
File diff suppressed because it is too large.
Load diff
+2
-1
@@ -22,6 +22,7 @@
|
|||||||
"discord.js": "^13.6.0",
|
"discord.js": "^13.6.0",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"moment": "^2.29.3",
|
"moment": "^2.29.3",
|
||||||
"translate": "^1.4.1"
|
"translate": "^1.4.1",
|
||||||
|
"twitter": "^1.7.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user