@@ -2,7 +2,7 @@
|
|||||||
[](https://www.dj-dj.be/projects/open-moderation)
|
[](https://www.dj-dj.be/projects/open-moderation)
|
||||||
|
|
||||||
# open-ticket
|
# open-ticket
|
||||||
[](https://discord.com/invite/26vT9wt3n3) [](https://github.com/DJj123dj/open-ticket/releases/tag/v2.1.0) [](#packages) [](https://github.com/DJj123dj/open-ticket/blob/main/LICENSE)
|
[](https://discord.com/invite/26vT9wt3n3) [](https://github.com/DJj123dj/open-ticket/releases/tag/v2.1.1) [](#packages) [](https://github.com/DJj123dj/open-ticket/blob/main/LICENSE)
|
||||||
|
|
||||||
This is an open-source discord ticket bot, you can configure it and it comes with cool features like transcripts & custom options!
|
This is an open-source discord ticket bot, you can configure it and it comes with cool features like transcripts & custom options!
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ if there are any errors, you can open an **issue on github** or **contact me in
|
|||||||
|
|
||||||
### config
|
### config
|
||||||
Our config documentation is moved to another file:
|
Our config documentation is moved to another file:
|
||||||
[click here to view](https://www.github.com/DJj123dj/open-ticket/wiki/config-v2.1.0)
|
[click here to view](https://www.github.com/DJj123dj/open-ticket/wiki/config-v2.1.1)
|
||||||
|
|
||||||
### intents & permissions
|
### 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
|
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
|
||||||
@@ -58,7 +58,7 @@ You can also configure your own permissions
|
|||||||
|
|
||||||
## information
|
## information
|
||||||
|
|
||||||
_v2.1.0 unstable_
|
_v2.1.1 stable_
|
||||||
|
|
||||||
changelog: [click here](https://www.github.com/DJj123dj/open-ticket/wiki/Changelog)
|
changelog: [click here](https://www.github.com/DJj123dj/open-ticket/wiki/Changelog)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -79,7 +79,7 @@
|
|||||||
"name":"Choose Your Ticket",
|
"name":"Choose Your Ticket",
|
||||||
"description":"You can click one of the buttons below!\nYou can also customize all the embeds now!",
|
"description":"You can click one of the buttons below!\nYou can also customize all the embeds now!",
|
||||||
"enableFooter":true,
|
"enableFooter":true,
|
||||||
"footer":"Open Ticket v2.1.0 - I'm a footer!",
|
"footer":"Open Ticket v2.1.1 - I'm a footer!",
|
||||||
"enableThumbnail":false,
|
"enableThumbnail":false,
|
||||||
"thumbnail":"https://www.example.com/catmemes/cat.png",
|
"thumbnail":"https://www.example.com/catmemes/cat.png",
|
||||||
"color":"#ffffff",
|
"color":"#ffffff",
|
||||||
|
|||||||
@@ -301,7 +301,6 @@ exports.checker = async () => {
|
|||||||
if (!["normal","adminonly"].includes(config.system.closeMode)){
|
if (!["normal","adminonly"].includes(config.system.closeMode)){
|
||||||
createError("'system/closeMode' | the close mode must be adminonly or normal")
|
createError("'system/closeMode' | the close mode must be adminonly or normal")
|
||||||
}
|
}
|
||||||
console.log("hoi")
|
|
||||||
|
|
||||||
checkType(config.system.enable_transcript,"boolean","system/enable_transcript")
|
checkType(config.system.enable_transcript,"boolean","system/enable_transcript")
|
||||||
checkType(config.system.enable_DM_transcript,"boolean","system/enable_DM_transcript")
|
checkType(config.system.enable_DM_transcript,"boolean","system/enable_DM_transcript")
|
||||||
|
|||||||
@@ -44,6 +44,21 @@ const log = this.errorLog.log
|
|||||||
client.on('ready',async () => {
|
client.on('ready',async () => {
|
||||||
const chalk = await (await import("chalk")).default
|
const chalk = await (await import("chalk")).default
|
||||||
|
|
||||||
|
if (!process.argv[2]){
|
||||||
|
console.log(chalk.red("WELCOME TO OPEN TICKET!"))
|
||||||
|
log("info","open ticket ready",[{key:"version",value:require("./package.json").version},{key:"language",value:config.languagefile}])
|
||||||
|
|
||||||
|
console.log(chalk.blue("\n\nlogs:")+"\n============")
|
||||||
|
if (config.status.enabled){
|
||||||
|
client.user.setActivity(config.status.text,{type:config.status.type})
|
||||||
|
}
|
||||||
|
|
||||||
|
log("system","bot logged in!")
|
||||||
|
|
||||||
|
await client.guilds.cache.find((g) => g.id == config.server_id).members.fetch()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (!process.argv[2].startsWith("slash")){
|
if (!process.argv[2].startsWith("slash")){
|
||||||
console.log(chalk.red("WELCOME TO OPEN TICKET!"))
|
console.log(chalk.red("WELCOME TO OPEN TICKET!"))
|
||||||
log("info","open ticket ready",[{key:"version",value:require("./package.json").version},{key:"language",value:config.languagefile}])
|
log("info","open ticket ready",[{key:"version",value:require("./package.json").version},{key:"language",value:config.languagefile}])
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "open-ticket",
|
"name": "open-ticket",
|
||||||
"version": "2.1.0",
|
"version": "2.1.1",
|
||||||
"description": "This is an open-source discord ticket bot, you can configure it and it comes with cool features like a transcript.",
|
"description": "This is an open-source discord ticket bot, you can configure it and it comes with cool features like a transcript.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Vendored
BIN
Binary file not shown.
Reference in New Issue
Block a user