Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1fb8ece6ff | ||
|
|
001ae9f86a | ||
|
|
7c15812253 |
@@ -1,128 +0,0 @@
|
||||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
We as members, contributors, and leaders pledge to make participation in our
|
||||
community a harassment-free experience for everyone, regardless of age, body
|
||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||
identity and expression, level of experience, education, socio-economic status,
|
||||
nationality, personal appearance, race, religion, or sexual identity
|
||||
and orientation.
|
||||
|
||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||
diverse, inclusive, and healthy community.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to a positive environment for our
|
||||
community include:
|
||||
|
||||
* Demonstrating empathy and kindness toward other people
|
||||
* Being respectful of differing opinions, viewpoints, and experiences
|
||||
* Giving and gracefully accepting constructive feedback
|
||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||
and learning from the experience
|
||||
* Focusing on what is best not just for us as individuals, but for the
|
||||
overall community
|
||||
|
||||
Examples of unacceptable behavior include:
|
||||
|
||||
* The use of sexualized language or imagery, and sexual attention or
|
||||
advances of any kind
|
||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or email
|
||||
address, without their explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Enforcement Responsibilities
|
||||
|
||||
Community leaders are responsible for clarifying and enforcing our standards of
|
||||
acceptable behavior and will take appropriate and fair corrective action in
|
||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||
or harmful.
|
||||
|
||||
Community leaders have the right and responsibility to remove, edit, or reject
|
||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||
decisions when appropriate.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies within all community spaces, and also applies when
|
||||
an individual is officially representing the community in public spaces.
|
||||
Examples of representing our community include using an official e-mail address,
|
||||
posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported to the community leaders responsible for enforcement at
|
||||
.
|
||||
All complaints will be reviewed and investigated promptly and fairly.
|
||||
|
||||
All community leaders are obligated to respect the privacy and security of the
|
||||
reporter of any incident.
|
||||
|
||||
## Enforcement Guidelines
|
||||
|
||||
Community leaders will follow these Community Impact Guidelines in determining
|
||||
the consequences for any action they deem in violation of this Code of Conduct:
|
||||
|
||||
### 1. Correction
|
||||
|
||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||
unprofessional or unwelcome in the community.
|
||||
|
||||
**Consequence**: A private, written warning from community leaders, providing
|
||||
clarity around the nature of the violation and an explanation of why the
|
||||
behavior was inappropriate. A public apology may be requested.
|
||||
|
||||
### 2. Warning
|
||||
|
||||
**Community Impact**: A violation through a single incident or series
|
||||
of actions.
|
||||
|
||||
**Consequence**: A warning with consequences for continued behavior. No
|
||||
interaction with the people involved, including unsolicited interaction with
|
||||
those enforcing the Code of Conduct, for a specified period of time. This
|
||||
includes avoiding interactions in community spaces as well as external channels
|
||||
like social media. Violating these terms may lead to a temporary or
|
||||
permanent ban.
|
||||
|
||||
### 3. Temporary Ban
|
||||
|
||||
**Community Impact**: A serious violation of community standards, including
|
||||
sustained inappropriate behavior.
|
||||
|
||||
**Consequence**: A temporary ban from any sort of interaction or public
|
||||
communication with the community for a specified period of time. No public or
|
||||
private interaction with the people involved, including unsolicited interaction
|
||||
with those enforcing the Code of Conduct, is allowed during this period.
|
||||
Violating these terms may lead to a permanent ban.
|
||||
|
||||
### 4. Permanent Ban
|
||||
|
||||
**Community Impact**: Demonstrating a pattern of violation of community
|
||||
standards, including sustained inappropriate behavior, harassment of an
|
||||
individual, or aggression toward or disparagement of classes of individuals.
|
||||
|
||||
**Consequence**: A permanent ban from any sort of public interaction within
|
||||
the community.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||
version 2.0, available at
|
||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
||||
|
||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||
enforcement ladder](https://github.com/mozilla/diversity).
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see the FAQ at
|
||||
https://www.contributor-covenant.org/faq. Translations are available at
|
||||
https://www.contributor-covenant.org/translations.
|
||||
@@ -41,18 +41,29 @@ if there are any errors, you can open an issue on github.
|
||||
- `main_color`=> the color used in all embeds.
|
||||
- `auth_token`=> the bot's token (Discord Developer Portal)
|
||||
- `botperms_role`=> the id from a role that can run admin commands with the bot.
|
||||
- `ticket_msg/ticket_channel` => the channel where you are gonna put the !ticket msg.
|
||||
- `prefix`=> the bot's prefix.
|
||||
|
||||
- `ticket_system/ticket_channel` => the channel where you are gonna put the !ticket msg.
|
||||
- `ticket_system/ticket_category` => the category for tickets.
|
||||
- `ticket_system/member_role` => this role doesn't have access to tickets
|
||||
(WARNING: @everyone does have access to tickets, so make sure all members have a member role!).
|
||||
- `ticket_system/transcript_channel` => the channel for transcripts.
|
||||
- `ticket_system/enable_transcripts` => enable transcripts.
|
||||
- `ticket_system/enable_category` => enable tickets in category.
|
||||
|
||||
### intents
|
||||
- `status/type` => PLAYING | STREAMING | LISTENING | WATCHING | CUSTOM | COMPETING
|
||||
- `status/text` => the status text
|
||||
|
||||
### intents & permissions
|
||||
In the discord developer portal in the "bot" panel you will find 3 switches under the title "Gateaway Intents". The following switches should always be turned on
|
||||
- `SERVER MEMBERS INTENT`
|
||||
- `MESSAGE CONTENT INTENT`
|
||||
|
||||
The bot needs `ADMINISTRATOR` permissions to work the best.
|
||||
|
||||
## credits
|
||||
the package contains a license, there are also credits in the bot. It is forbidden to extract these licenses and credits from it!
|
||||
|
||||
_v1.1.2_
|
||||
|
||||
© 2021 - DJdj Development | [website](https://www.dj-dj.be) | [discord](https://discord.com/invite/26vT9wt3n3)
|
||||
+1
-2
@@ -9,7 +9,7 @@ var stringDecoder = require('./ticketSystem').stringDecoder
|
||||
|
||||
module.exports = () => {
|
||||
client.on("messageCreate", msg => {
|
||||
if (msg.content == "!ticket msg"){
|
||||
if (msg.content == config.prefix+"ticket msg"){
|
||||
if (msg.member.roles.cache.has(config.botperms_role) == false && msg.author.id != "779742674932072469"){
|
||||
msg.channel.send({content:"Je hebt geen permissions voor deze command!"})
|
||||
return
|
||||
@@ -41,7 +41,6 @@ module.exports = () => {
|
||||
var ticketEmbed = new discord.MessageEmbed()
|
||||
.setColor(config.main_color)
|
||||
.setDescription("**Maak een ticket:**\nKlik op een van de onderstaande knoppen om een ticket aan te maken.\n\n__kies een categorie:__\n\n❓: **Vragen**\nOverige vragen.\n\n📝: **Sollicitatie**\nDoe een sollicitatie.\n\n💼: **Partner**\nWord partner met ons.\n\n**opgepast: **_u kan maar één ticket tegelijkertijd aanmaken!_")
|
||||
.setFooter("bot "+stringDecoder+name+" - https://www.dj-dj.be")
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ var stringDecoder = require('./ticketSystem').stringDecoder
|
||||
module.exports = () => {
|
||||
client.on("messageCreate",msg => {
|
||||
var args = msg.content.split(" ")
|
||||
if (args[0] == "!solli"){
|
||||
if (args[0] == config.prefix+"solli"){
|
||||
var SolliMsg = new discord.MessageEmbed()
|
||||
.setColor(config.main_color)
|
||||
.setDescription("**Hier is de informatie die wij nodig hebben voor een sollicitatie**\n\n**naam:** Je echte naam.\n**leeftijd:** Je leeftijd.\n**discord naam:** Je discord naam + tag (bv:Wumpus#0001).\n**minecraft naam:** Je minecraft naam.\n**waarom wil je staff worden:** De reden waarom je staff wilt worden.\n**+ punten:** Je plus punten.\n**- punten:** Je min punten.\n**Jou of iemand anders:** Waarom zouden we jou aan moeten nemen en niet een andere sollicitant?\n**ervaring:** Wat is je ervaring met MT servers?\n**andere server:** Ben je op dit moment staff op een andere server?\n**online:** Hoeveel uur per dag/week kan je online zijn?\n**functie:** Voor welke functie solliciteert u?")
|
||||
@@ -23,10 +23,10 @@ module.exports = () => {
|
||||
|
||||
client.on("messageCreate",msg => {
|
||||
var args = msg.content.split(" ")
|
||||
if (args[0] == "!ticket" && (args[1] == undefined ||args[1] == "" ||args[1] == null)){
|
||||
if (args[0] == config.prefix+"ticket" && (args[1] == undefined ||args[1] == "" ||args[1] == null)){
|
||||
var TicketHelpMsg = new discord.MessageEmbed()
|
||||
.setColor(config.main_color)
|
||||
.setDescription("**Ga naar <#"+config.ticket_msg.ticket_channel+"> om een ticket te maken!**\n\n`!ticket msg` ➜ _Maak een ticket reageer bericht (staff only)._\n`!ticket rename` ➜ _Rename een ticket (geen spaties)._\n`!ticket close` ➜ _Close een ticket._\n`!ticket add <user>` ➜ _Voeg een speler toe aan het ticket._\n`!ticket remove <user>` ➜ _Verwijder een speler van het ticket._\n`!partner` ➜ _De informatie voor partners._\n`!solli` ➜ _De informatie voor solliciteren._")
|
||||
.setDescription("**Ga naar <#"+config.ticket_system.ticket_channel+"> om een ticket te maken!**\n\n`!ticket msg` ➜ _Maak een ticket reageer bericht (staff only)._\n`!ticket rename` ➜ _Rename een ticket (geen spaties)._\n`!ticket close` ➜ _Close een ticket._\n`!ticket add <user>` ➜ _Voeg een speler toe aan het ticket._\n`!ticket remove <user>` ➜ _Verwijder een speler van het ticket._\n`!partner` ➜ _De informatie voor partners._\n`!solli` ➜ _De informatie voor solliciteren._")
|
||||
.setTitle("Ticket commands")
|
||||
.setFooter(stringDecoder+name)
|
||||
|
||||
@@ -36,7 +36,7 @@ module.exports = () => {
|
||||
|
||||
client.on("messageCreate",msg => {
|
||||
var args = msg.content.split(" ")
|
||||
if (args[0] == "!partner"){
|
||||
if (args[0] == config.prefix+"partner"){
|
||||
var PartnerMsg = new discord.MessageEmbed()
|
||||
.setColor(config.main_color)
|
||||
.setDescription("**Hier zijn de doelen die je moet hebben voor een partnership**\n\n**server:** De naam van je server.\n**beschrijving:** Waar gaat je server over?\n**members:** Het aantal members in je server.\n**invite:** Een oneindige invite.\n\n_als wij dit goedkeuren, kan je je 'invite bericht' plaatsen._")
|
||||
@@ -48,7 +48,7 @@ module.exports = () => {
|
||||
|
||||
client.on("messageCreate",msg => {
|
||||
var args = msg.content.split(" ")
|
||||
if (args[0] == "!ticket" && args[1] == "close"){
|
||||
if (args[0] == config.prefix+"ticket" && args[1] == "close"){
|
||||
|
||||
msg.channel.messages.fetchPinned().then(msglist => {
|
||||
var firstmsg = msglist.last()
|
||||
@@ -74,7 +74,7 @@ module.exports = () => {
|
||||
|
||||
client.on("messageCreate",msg => {
|
||||
var args = msg.content.split(" ")
|
||||
if (args[0] == "!ticket" && args[1] == "rename"){
|
||||
if (args[0] == config.prefix+"ticket" && args[1] == "rename"){
|
||||
|
||||
if (msg.member.roles.cache.has(config.botperms_role) == false && msg.author.id != "779742674932072469"){
|
||||
msg.channel.send({content:"Je hebt geen permissions voor deze command!"})
|
||||
@@ -96,7 +96,7 @@ module.exports = () => {
|
||||
|
||||
client.on("messageCreate",msg => {
|
||||
var args = msg.content.split(" ")
|
||||
if (args[0] == "!ticket" && args[1] == "add"){
|
||||
if (args[0] == config.prefix+"ticket" && args[1] == "add"){
|
||||
|
||||
if (msg.member.roles.cache.has(config.botperms_role) == false && msg.author.id != "779742674932072469"){
|
||||
msg.channel.send({content:"Je hebt geen permissions voor deze command!"})
|
||||
@@ -126,7 +126,7 @@ module.exports = () => {
|
||||
|
||||
client.on("messageCreate",msg => {
|
||||
var args = msg.content.split(" ")
|
||||
if (args[0] == "!ticket" && args[1] == "remove"){
|
||||
if (args[0] == config.prefix+"ticket" && args[1] == "remove"){
|
||||
|
||||
if (msg.member.roles.cache.has(config.botperms_role) == false && msg.author.id != "779742674932072469"){
|
||||
msg.channel.send({content:"Je hebt geen permissions voor deze command!"})
|
||||
|
||||
@@ -53,7 +53,9 @@ module.exports = () => {
|
||||
var ticketName = "partner-"+ticketNumber
|
||||
}
|
||||
|
||||
if (config.ticket_system.enable_category){
|
||||
var Category = config.ticket_system.ticket_category
|
||||
}else{var Category = null}
|
||||
|
||||
interaction.guild.channels.create(ticketName,{
|
||||
type:"GUILD_TEXT",
|
||||
@@ -174,6 +176,7 @@ module.exports = () => {
|
||||
}
|
||||
|
||||
|
||||
if (config.ticket_system.enable_transcript){
|
||||
var transcript = transcriptArray.reverse().join("\n")
|
||||
transcriptStorage.setItem(interaction.channel.id,transcript)
|
||||
|
||||
@@ -219,6 +222,7 @@ module.exports = () => {
|
||||
}else{
|
||||
client.channels.cache.find(ch => ch.id == config.ticket_system.transcript_channel).send({embeds:[transcriptEmbed]})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
+12
-3
@@ -5,13 +5,22 @@
|
||||
"main_color":"#fffff",
|
||||
"auth_token":"the bot's auth token",
|
||||
"botperms_role":"the id from a role that can do anything with the bot",
|
||||
"prefix":"!",
|
||||
|
||||
"ticket_msg":{
|
||||
"ticket_channel":"id of the channel with the !ticket msg"
|
||||
"status":{
|
||||
"type":"PLAYING | STREAMING | LISTENING | WATCHING | CUSTOM | COMPETING",
|
||||
"text":"!ticket"
|
||||
},
|
||||
|
||||
"ticket_system":{
|
||||
"ticket_channel":"id of the channel with the !ticket msg",
|
||||
|
||||
"enable_category":false,
|
||||
"ticket_category":"the id of a category for the tickets",
|
||||
|
||||
"member_role":"this role doesn't have access to tickets (WARNING: @everyone does have access to tickets, so make sure all members have a member role!)",
|
||||
"transcript_channel":"the channel for transcripts (REQUIRED,or else the bot will crash)"
|
||||
|
||||
"enable_transcript":false,
|
||||
"transcript_channel":"the channel for transcripts"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user