mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-01 16:31:25 +03:00
v2 rewrite with discord.js@v12 support. Now with SQLite or MySQL storage.
Code is at least 80% less bad.
This commit is contained in:
79
user/config.js
Normal file
79
user/config.js
Normal file
@@ -0,0 +1,79 @@
|
||||
/**
|
||||
* ###############################################################################################
|
||||
* ____ _ _____ _ _
|
||||
* | _ \ (_) ___ ___ ___ _ __ __| | |_ _| (_) ___ | | __ ___ | |_ ___
|
||||
* | | | | | | / __| / __| / _ \ | '__| / _` | | | | | / __| | |/ / / _ \ | __| / __|
|
||||
* | |_| | | | \__ \ | (__ | (_) | | | | (_| | | | | | | (__ | < | __/ | |_ \__ \
|
||||
* |____/ |_| |___/ \___| \___/ |_| \__,_| |_| |_| \___| |_|\_\ \___| \__| |___/
|
||||
*
|
||||
* ---------------------
|
||||
* Quick Start
|
||||
* ---------------------
|
||||
*
|
||||
* > For detailed instructions, visit the GitHub repository and read the documentation:
|
||||
* https://github.com/eartharoid/DiscordTickets/#readme
|
||||
*
|
||||
* > IMPORTANT: Also rename 'user/example.env' to 'user/.env' and edit the TOKEN
|
||||
*
|
||||
* ---------------------
|
||||
* Support
|
||||
* ---------------------
|
||||
*
|
||||
* > Information: https://github.com/eartharoid/DiscordTickets/#readme
|
||||
* > Discord Support Server: https://go.eartharoid.me/discord
|
||||
* > Wiki: https://github.com/eartharoid/DiscordTickets/wiki
|
||||
*
|
||||
* ###############################################################################################
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
prefix: '-',
|
||||
name: 'DiscordTickets',
|
||||
activities: ['-new', 'with tickets', 'for new tickets'], /** @INFO " | {PRE}help" */
|
||||
activity_types: ['PLAYING', 'PLAYING', 'WATCHING'], /** @INFO paired */
|
||||
colour: '#009999',
|
||||
err_colour: '#E74C3C',
|
||||
|
||||
guild: '451745464480432129', // ID of your guild
|
||||
staff_role: '451745586564169728', // ID of your Support Team role
|
||||
|
||||
tickets: {
|
||||
category: '620272351988285480', // ID of your tickets category
|
||||
send_img: true,
|
||||
ping: 'here', /** @INFO here, everyone, staff, false */
|
||||
text: `Hello there, {{ tag }}!
|
||||
A member of staff will assist you shortly.
|
||||
In the mean time, please describe your issue in as much detail as possible! :)`, // {{ name }} and {{ tag }}
|
||||
pin: false,
|
||||
max: 3 /** @INFO OPEN */
|
||||
},
|
||||
|
||||
transcripts: {
|
||||
text: {
|
||||
enabled: true,
|
||||
keep_for: 90,
|
||||
},
|
||||
web: {
|
||||
enabled: false,
|
||||
server: 'https://tickets.example.com', // WITHOUT! trailing /
|
||||
}
|
||||
},
|
||||
|
||||
storage: {
|
||||
type: 'sqlite'
|
||||
},
|
||||
|
||||
logs: {
|
||||
files: {
|
||||
enabled: true,
|
||||
keep_for: 7
|
||||
},
|
||||
discord: {
|
||||
enabled: true,
|
||||
channel: '573957980152791080' // ID of your log channel
|
||||
}
|
||||
},
|
||||
|
||||
debug: false,
|
||||
updater: false /** @INFO ENABLE BY DEFAULT */
|
||||
};
|
8
user/example.env
Normal file
8
user/example.env
Normal file
@@ -0,0 +1,8 @@
|
||||
TOKEN=
|
||||
|
||||
ARCHIVES_KEY=
|
||||
|
||||
DB_HOST=
|
||||
DB_NAME=
|
||||
DB_USER=
|
||||
DB_PASS=
|
BIN
user/images/how-can-i-help-1.gif
Normal file
BIN
user/images/how-can-i-help-1.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 MiB |
BIN
user/images/how-can-i-help-2.gif
Normal file
BIN
user/images/how-can-i-help-2.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 MiB |
BIN
user/images/how-can-we-help.gif
Normal file
BIN
user/images/how-can-we-help.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 MiB |
0
user/transcripts/raw/.gitkeep
Normal file
0
user/transcripts/raw/.gitkeep
Normal file
0
user/transcripts/text/.gitkeep
Normal file
0
user/transcripts/text/.gitkeep
Normal file
Reference in New Issue
Block a user