Skip to content

Commit

Permalink
Merge pull request #13 from DJj123dj/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
DJj123dj authored Jun 28, 2022
2 parents 59e7562 + 5f5699f commit 06b57f1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![open moderation](./openmod.png)](https://www.dj-dj.be/projects/open-moderation)

# open-ticket
[![discord](https://img.shields.io/badge/discord-join%20our%20server-5865F2.svg?style=flat-square&logo=discord)](https://discord.com/invite/26vT9wt3n3) [![version](https://img.shields.io/badge/version-2.1.0%20stable-brightgreen.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/releases/tag/v2.1.0) [![npm](https://img.shields.io/badge/npm-external%20libraries%20needed-CB3837.svg?style=flat-square&logo=npm)](#packages) [![license](https://img.shields.io/badge/license-GPL%203.0-important.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/blob/main/LICENSE)
[![discord](https://img.shields.io/badge/discord-join%20our%20server-5865F2.svg?style=flat-square&logo=discord)](https://discord.com/invite/26vT9wt3n3) [![version](https://img.shields.io/badge/version-2.1.1%20stable-brightgreen.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/releases/tag/v2.1.1) [![npm](https://img.shields.io/badge/npm-external%20libraries%20needed-CB3837.svg?style=flat-square&logo=npm)](#packages) [![license](https://img.shields.io/badge/license-GPL%203.0-important.svg?style=flat-square)](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!

Expand Down Expand Up @@ -46,7 +46,7 @@ if there are any errors, you can open an **issue on github** or **contact me in

### config
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
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
Expand All @@ -58,7 +58,7 @@ You can also configure your own permissions

## information

_v2.1.0 unstable_
_v2.1.1 stable_

changelog: [click here](https://www.github.com/DJj123dj/open-ticket/wiki/Changelog)

Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"name":"Choose Your Ticket",
"description":"You can click one of the buttons below!\nYou can also customize all the embeds now!",
"enableFooter":true,
"footer":"Open Ticket v2.1.0 - I'm a footer!",
"footer":"Open Ticket v2.1.1 - I'm a footer!",
"enableThumbnail":false,
"thumbnail":"https://www.example.com/catmemes/cat.png",
"color":"#ffffff",
Expand Down
1 change: 0 additions & 1 deletion core/checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ exports.checker = async () => {
if (!["normal","adminonly"].includes(config.system.closeMode)){
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_DM_transcript,"boolean","system/enable_DM_transcript")
Expand Down
15 changes: 15 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ const log = this.errorLog.log
client.on('ready',async () => {
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")){
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}])
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"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.",
"main": "index.js",
"scripts": {
Expand Down
Binary file modified storage/.DS_Store
Binary file not shown.

0 comments on commit 06b57f1

Please sign in to comment.