Skip to content

Commit

Permalink
v1.3.0
Browse files Browse the repository at this point in the history
Changes in changelog
  • Loading branch information
DJj123dj committed Mar 30, 2022
1 parent 1451769 commit 21e3a88
Show file tree
Hide file tree
Showing 8 changed files with 476 additions and 141 deletions.
65 changes: 65 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# changelog

## v1.3.0
### added:
- now its possible to create 6 tickets instead of 4
- you can edit the number of tickets per user now
- you can edit & enable/disable all messages
- all embeds are now editable
- the color of the button can be changed
- updated config.json
- updated README.md
- a new type of button is here: website links
### fixed
- nothing at the moment :)
### removed
- nothing

## v1.2.2
### added:
- nothing
### fixed:
- a bug that caused the `warn "message" event deprecated` to be displayed every time you start the bot in the console.
- a visual bug that caused the categories from `!ticket msg` to be displayed in a wrong pattern.
### removed:
- nothing

## v1.2.1
### added:
- you can disable credits in config.json
### fixed:
- a bug that crashed the bot on startup
### removed
- nothing

## v1.2.0
### added:
- the bot is in english now
- you can choose your own ticket options now
- added !resetdatabase
- updated README.md
### fixed:
- the first bugs
### removed:
- some useless commands

## v1.1.1
### added:
- added "status" options in config.json
### fixed:
- fixed a bug where the bot's status could be "playing highmt".
### removed:
- nothing

## v1.1.0
### added:
- option to choose your own prefix
- enable/disable transcripts
- enable/disable categories
### fixed:
- the bot crashed sometimes
### removed:
- credits

## v1.0.0
- initial release
67 changes: 67 additions & 0 deletions CONFIG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# config file
[![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-1.3.0%20stable-brightgreen.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/releases/tag/v1.3.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)

In this file you find all the information about commands in the config.json file

- server_name ➜ the name of your server (optional) _**type: string**_
- server_logo ➜ the logo of your server (optional) _**type: url**_
- bot_name ➜ the name from the bot _**type: string**_
- main_color ➜ the color used in embeds _**type: hex color (#000000)**_
- auth_token ➜ your bot's token _**type: string**_
- botperms_role ➜ this role can do all admin commands from the bot _**type: discord role id**_
- prefix ➜ the prefix _**type: string**_
- credits ➜ disable the credits _**type: boolean**_

## status: (the status from the bot)
- type ➜ set the status type _**type: string (PLAYING | LISTENING | WATCHING | CUSTOM)**
- text ➜ set the status text _**type: string**_

## system: (the configuration for the ticket system)
- ticket_channel ➜ channel where you are going to set `!ticket msg` _**type: discord channel id**_
- max_allowed_tickets ➜ the maximum allowed tickets per person _**type: number**_
- enable_DM_Messages ➜ enable DM messages _**type: boolean**_
- enable_category ➜ enable category _**type: boolean**_
- ticket_category ➜ the category id _**type: discord category id**_
- has@everyoneaccess ➜ when enabled everyone has acces to the tickets _**type: boolean**_
- member_role ➜ this role doesn't have access to tickets _**type: discord role id**_
- enable_transcript ➜ enable the transcript _**type: boolean**_
- transcript_channel ➜ the transcript channel id _**type: discord channel id**_

## messages: (general, dm, ticket)
- nopermissions ➜ the message when someone doesn't have permissions _**type: string**_
- alreadyCreated ➜ if you have too much tickets open _**type: string**_
- newTicket ➜ when you create a new ticket _**type: string**_
- closeTicket ➜ when you close a ticket _**type: string**_
- newTicketEmbed ➜ the first message in the ticket channel _**type: string**

## layout: (ticketEmbed, ticketMsg, transcript)
`transcript` doesn't have all the options

- customColorEnabled ➜ custom embed color enabled _**type: boolean**
- customColor ➜ the custom color _**type: hex color (#000000)**
- footerEnabled ➜ custom footer enabled _**type: boolean**
- footer ➜ the custom footer _**type: string**
- thumbnailEnabled ➜ custom thumbnail enabled _**type: boolean**
- thumbnailURL ➜ the image _**type: string**

## options: (per ticket)
color is not needed when `isURL` is `true`

- enabled ➜ enable this ticket _**type: boolean**
- icon ➜ the button emoji _**type: emoji or custom emoji**
- description ➜ ticket description _**type: string**
- name ➜ ticket name _**type: string**
- channel_prefix ➜ ticket prefix _**type: string**
- color ➜ button color _**type: string (red|green|blue|gray|none)**
- isURL ➜ create link to a website instead of a normal ticket _**type: boolean**
- url ➜ the website to go to _**type: string**

# thanks for using open-ticket
I didn't know that open-tickets was going to be so much used. I will be creating more updates in the future!

If you have an idea for new updates you can always say it in my discord server!

open-tickets v1.3.0
74 changes: 22 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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-1.2.2%20stable-brightgreen.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/releases/tag/v1.2.2)
[![version](https://img.shields.io/badge/version-1.3.0%20stable-brightgreen.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/releases/tag/v1.3.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)

Expand All @@ -13,78 +13,48 @@ This is an open-source discord ticket bot, you can configure it and it comes wit
- transcripts
- add/remove users from ticket
- custom colors & name
- has tickets for questions, partners & job applications
- create custom ticket names, icons & colors
- create url buttons for websites
- uses discord.js 13
- configure your own ticket options
- remove credits if you want

- up to 6 tickets at the same time
- change all bot messages

## installation
You need `node.js 16` to run this project, if you don't want to install `node.js 16` then there is a npm package that can help you.
**You need `node.js 16` to run this project!**

You can clone this project for download.
You can clone or download this project.

### packages
- canvas => version `^2.8.0`
- discord.js => version `^13.2.0`
- express => version `^4.17.1`
- node-localstorage => version `^2.2.1`

The packages are also in package.json!
- canvas => version `latest`
- discord.js => version `latest`
- express => version `latest`
- node-localstorage => version `latest`

### node.js 16 package
if you don't want to install `node.js 16`, you can install this package too
- node => version ^16.10.0

_npm install node@16_
You can install all of them by running `npm install`

## running
you can run `node index.js` but i would recommend you to use `npm start`

if there are any errors, you can open an **issue on github** or **contact me in the discord server**.

### config (required)
=> main config
- `server_name` => the name from your server.
- `server_logo`=> the logo from your server.
- `bot_name`=> the bot's name.
- `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.
- `prefix`=> the bot's prefix.

- `credits_please-do-not-remove` => remove the credits or not

=> status config
- `status/type` => PLAYING | STREAMING | LISTENING | WATCHING | CUSTOM | COMPETING
- `status/text` => the status text

=> ticket system config
- `system/ticket_channel` => the channel where you are going to put the !ticket msg.
- `system/ticket_category` => the category for tickets.
- `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!).
- `system/transcript_channel` => the channel for transcripts.
- `system/enable_transcripts` => enable transcripts.
- `system/enable_category` => enable tickets in category.

=> ticket options config
- `options/ticket.../enabled` => set this option TRUE or FALSE.
- `options/ticket.../icon` => set an emoji for this ticket option.
- `options/ticket.../description` => set a description for this ticket option.
- `options/ticket.../name` => set a name for this ticket option.
- `options/ticket.../channel_prefix` => this will be the prefix for channel names (empty is disabled!)
### config
Our config documentation is moved to another file:
[click here to view](CONFIG.md)

### 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.
To work the best, the bot needs `ADMINISTRATOR` permissions.
You can also configure your own permissions

## information

## credits
Please don't remove the credits from the bot 😊.
_v1.3.0_

_v1.2.2_
changelog: [click here](CHANGELOG.md)

© 2021 - DJdj Development | [website](https://www.dj-dj.be) | [discord](https://discord.com/invite/26vT9wt3n3)
© 2022 - DJdj Development | [website](https://www.dj-dj.be) | [discord](https://discord.com/invite/26vT9wt3n3)
Loading

0 comments on commit 21e3a88

Please sign in to comment.