Code Monkey home page Code Monkey logo

discord-tickets / bot Goto Github PK

View Code? Open in Web Editor NEW
813.0 35.0 437.0 9.63 MB

The most popular open-source and self-hosted ticket management bot for Discord - a free alternative to the premium and white-label plans of other popular ticketing bots.

Home Page: https://discordtickets.app

License: GNU General Public License v3.0

JavaScript 98.54% Dockerfile 0.55% Shell 0.30% Mustache 0.61%
discord tickets ticket-management bot discord-bot ticket-bot discord-js discord-ticket-bot hacktoberfest

bot's People

Contributors

allcontributors[bot] avatar benketomi avatar berdiinn avatar criobits avatar davidcralph avatar dbolger avatar dependabot[bot] avatar depfu[bot] avatar dziondzio avatar eartharoid avatar ifusionfr avatar inoeel avatar jim-m-y avatar justman100 avatar kdhkr avatar m4rlus avatar manfred-exe avatar mgsi100 avatar mods-hd avatar naradiel avatar olivercordingl1 avatar pmtsantos05 avatar potatoru avatar sgtjohnny avatar t6c avatar tegelsoep avatar uzurka avatar vindotrun avatar weblate avatar windlessme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bot's Issues

Add maximum open tickets config option

Can you please add option to specify active tickets limit per user. When user want to open new ticket and has reached limit, reply that active ticket limit was reached

MongoDB support

Hello, can you add option to use mongodb for storing data?

Dotenv package not found

I have absolutely no idea why it shows dotenv module didn't found
I also installed npm package of dotenv

TypeError: Discord.RichEmbed is not a constructor

I have done the full setup and whenever i launch, here is what the cmd looks like:

######## #### ###### ###### ####### ######## ########

## ## ## ## ## ## ## ## ## ## ##

## ## ## ## ## ## ## ## ##

## ## ###### ## ## ## ######## ##

## ## ## ## ## ## ## ## ##

## ## ## ## ## ## ## ## ## ## ##

######## #### ###### ###### ####### ## ## ########

######## #### ###### ## ## ######## ######## ######

## ## ## ## ## ## ## ##

## ## ## ## ## ##

## ## ##### ###### ##

## ## ## ## ## ##

## ## ## ## ## ## ## ##

#### ###### ## ## ######## ##

DiscordTickets v1.0.0 - Made By Eartharoid
https://github.com/eartharoid/DiscordTickets

==========================================================================

[00:48:43 | INIT] Initialising logger (v1.1.9)
[00:48:43 | INIT] Creating new log file ("./logs/06-06-2020-00-48-43.log")
[00:48:43 | INIT] Initialised logger with the following custom types:
[00:48:43 | INFO] Starting up...
[00:48:43 | INFO] Initialising bot...
[00:48:43 | INFO] > Loading '?add' command
[00:48:43 | INFO] > Loading '?close' command
[00:48:43 | INFO] > Loading '?help' command
[00:48:43 | INFO] > Loading '?new' command
[00:48:43 | INFO] > Loading '?ping' command
[00:48:43 | INFO] > Loading '?remove' command
[00:48:43 | INFO] Connected to Discord API
[00:48:43 | INFO] Logged in as Xzobe Tickets#6907
[00:48:43 | WARN] An error was not caught
[00:48:43 | ERROR] Uncaught error:
TypeError: Discord.RichEmbed is not a constructor
at Client. (C:\Users\Caleb\Desktop\Discord Bots\Discord Tickets\index.js:100:19)
at Object.onceWrapper (events.js:421:28)
at Client.emit (events.js:315:20)
at WebSocketManager.triggerClientReady (C:\Users\Caleb\Desktop\Discord Bots\Discord Tickets\node_modules\discord.js\src\client\websocket\WebSocketManager.js:433:17)
at WebSocketManager.checkShardsReady (C:\Users\Caleb\Desktop\Discord Bots\Discord Tickets\node_modules\discord.js\src\client\websocket\WebSocketManager.js:417:10)
at WebSocketShard. (C:\Users\Caleb\Desktop\Discord Bots\Discord Tickets\node_modules\discord.js\src\client\websocket\WebSocketManager.js:199:14)
at WebSocketShard.emit (events.js:315:20)
at WebSocketShard.checkReady (C:\Users\Caleb\Desktop\Discord Bots\Discord Tickets\node_modules\discord.js\src\client\websocket\WebSocketShard.js:467:12)
at Object.module.exports [as READY] (C:\Users\Caleb\Desktop\Discord Bots\Discord Tickets\node_modules\discord.js\src\client\websocket\handlers\READY.js:20:9)
at WebSocketManager.handlePacket (C:\Users\Caleb\Desktop\Discord Bots\Discord Tickets\node_modules\discord.js\src\client\websocket\WebSocketManager.js:386:31)

I am not sure how to fix it. I have done research but can't figure it out.

Extra log features

Is it possible to add a feature which creates a log of all the messages sent even after the ticket is deleted. For example with other bots they create a txt of the channel after the ticket is closed.

!new does not work anymore as of today

Hello,

I've been using the bot for a while and had no issues, until yesterday when opening tickets stopped working. I've tried with "fresh install" on different PCs on different discord servers and I get the same error, if you have any idea what could the reason be.

[INFO | 5:11:09] disc#123456 used the 'new' command
[WARN | 5:11:09] An error was not caught
[ERROR | 5:11:09] Uncaught error:
DiscordAPIError: Invalid Form Body
type: Value "text" is not int.
at item.request.gen.end (E:\Tick\Tickets\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:85:15)
at then (E:\Tick\Tickets\node_modules\snekfetch\src\index.js:215:21)
at process._tickCallback (internal/process/next_tick.js:68:7)

Best regards

Member Error

[10:31:34 | ERROR] TypeError: Cannot read property 'member' of undefined
at Object.execute (C:\Serveur\Bot\DiscordTickets-master\src\events\ready.js:37:44)
at Client. (C:\Serveur\Bot\DiscordTickets-master\src\index.js:130:68)
at Client.emit (events.js:315:20)
at WebSocketManager.triggerClientReady (C:\Serveur\Bot\DiscordTickets-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:431:17)
at WebSocketManager.checkShardsReady (C:\Serveur\Bot\DiscordTickets-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:415:10)
at WebSocketShard. (C:\Serveur\Bot\DiscordTickets-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:197:14)
at WebSocketShard.emit (events.js:315:20)
at WebSocketShard.checkReady (C:\Serveur\Bot\DiscordTickets-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:475:12)
at WebSocketShard.onPacket (C:\Serveur\Bot\DiscordTickets-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:447:16)
at WebSocketShard.onMessage (C:\Serveur\Bot\DiscordTickets-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)

Cannot read property 'send' of undefined

[04:55:26 | INIT] Initialising logger (v1.1.9)
[04:55:26 | INIT] Creating new log file ("./logs/17-05-2020-04-55-26.log")
[04:55:26 | INIT] Initialised logger with the following custom types:
[04:55:26 | INFO] Starting up...
[04:55:27 | INFO] Initialising bot...
[04:55:27 | INFO] > Loading '!add' command
[04:55:27 | INFO] > Loading '!close' command
[04:55:27 | INFO] > Loading '!help' command
[04:55:27 | INFO] > Loading '!new' command
[04:55:27 | INFO] > Loading '!ping' command
[04:55:27 | INFO] > Loading '!remove' command
[04:55:27 | INFO] Connected to Discord API
[04:55:27 | INFO] Logged in as (Name of the bot)
/home/ticketbot/index.js:105
client.channels.get(config.logChannel).send(embed)
^

TypeError: Cannot read property 'send' of undefined
at Client.client.once (/home/ticketbot/index.js:105:43)
at Object.onceWrapper (events.js:286:20)
at Client.emit (events.js:203:15)
at WebSocketConnection.triggerReady (/home/ticketbot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:128:17)
at WebSocketConnection.checkIfReady (/home/ticketbot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:144:61)
at ReadyHandler.handle (/home/ticketbot/node_modules/discord.js/src/client/websocket/packets/handlers/Ready.js:80:8)
at WebSocketPacketManager.handle (/home/ticketbot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:108:65)
at WebSocketConnection.onPacket (/home/ticketbot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:336:35)
at WebSocketConnection.onMessage (/home/ticketbot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:299:17)
at WebSocket.onMessage (/home/ticketbot/node_modules/ws/lib/event-target.js:120:16)

Error when starting

[14:16:57 | WARN] An error was not caught
[14:16:57 | WARN] Uncaught TypeError: Cannot read property 'member' of undefined
[14:16:57 | ERROR] TypeError: Cannot read property 'member' of undefined
at Object.execute (/home/bot/DiscordTickets/src/events/ready.js:37:44)
at Client.client.on (/home/bot/DiscordTickets/src/index.js:130:68)
at Client.emit (events.js:198:13)
at WebSocketManager.triggerClientReady (/home/bot/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketManager.js:431:17)
at WebSocketManager.checkShardsReady (/home/bot/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketManager.js:415:10)
at WebSocketShard.shard.on.unavailableGuilds (/home/bot/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketManager.js:197:14)
at WebSocketShard.emit (events.js:198:13)
at WebSocketShard.checkReady (/home/bot/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketShard.js:475:12)
at WebSocketShard.onPacket (/home/bot/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketShard.js:447:16)
at WebSocketShard.onMessage (/home/bot/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)

can someone help me with that? iam using ubuntu

error

everytime i do node .
it says this
[20:27:08 | ERROR] Uncaught error:
TypeError: RichEmbed is not a constructor
at Client. (C:\Users\nathan\Desktop\PlexTickets\index.js:86:19)
at Object.onceWrapper (events.js:417:28)
at Client.emit (events.js:311:20)
at WebSocketManager.triggerClientReady (C:\Users\nathan\Desktop\PlexTickets\node_modules\discord.js\src\client\websocket\WebSocketManager.js:433:17)
at WebSocketManager.checkShardsReady (C:\Users\nathan\Desktop\PlexTickets\node_modules\discord.js\src\client\websocket\WebSocketManager.js:417:10)
at WebSocketShard. (C:\Users\nathan\Desktop\PlexTickets\node_modules\discord.js\src\client\websocket\WebSocketManager.js:199:14)
at WebSocketShard.emit (events.js:311:20)
at WebSocketShard.checkReady (C:\Users\nathan\Desktop\PlexTickets\node_modules\discord.js\src\client\websocket\WebSocketShard.js:466:12)
at WebSocketShard.onPacket (C:\Users\nathan\Desktop\PlexTickets\node_modules\discord.js\src\client\websocket\WebSocketShard.js:438:16)
at WebSocketShard.onMessage (C:\Users\nathan\Desktop\PlexTickets\node_modules\discord.js\src\client\websocket\WebSocketShard.js:293:10)

Help please

[23:27:21 | ERROR] TypeError: Cannot read property 'length' of undefined at Object.execute (C:\Users\*****\OneDrive\Desktop\Discord Bots\Ryans server\src\commands\help.js:34:14) at Object.execute (C:\Users\*****\OneDrive\Desktop\Discord Bots\Ryans server\src\events\message.js:102:12)

Undefinited

Describe the bug
He has two ''bug''
Uncaught TypeError: Cannot read property 'member' of undefined
[12:00:46 | WARN] An error was not caught [12:00:46 | WARN] Uncaught TypeError: Cannot read property 'id' of undefined

To Reproduce
run the help command

Expected behavior
to see the help command

bug new ticket

[23:11:43 | INFO] Backup#5417 used the 'new' command
[23:11:44 | ERROR] DiscordAPIError: Invalid Form Body
parent_id: Value "" is not snowflake.
at RequestHandler.execute (C:\Users\cynthia\Desktop\DiscordTickets-master\node_modules\discord.js\src\rest\RequestHandler.js:170:25)
at processTicksAndRejections (internal/process/task_queues.js:97:5)

I have this error:

[12:05:20 | ERROR] TypeError: Cannot read property 'member' of undefined
at Object.execute (C:\Users\Jesus\Desktop\᲻\Bots\DiscordTickets reaction\src\events\ready.js:37:44)
at Client. (C:\Users\Jesus\Desktop\᲻\Bots\DiscordTickets reaction\src\index.js:130:68)
at Client.emit (events.js:315:20)
at WebSocketManager.triggerClientReady (C:\Users\Jesus\Desktop\᲻\Bots\DiscordTickets reaction\node_modules\discord.js\src\client\websocket\WebSocketManager.js:431:17)
at WebSocketManager.checkShardsReady (C:\Users\Jesus\Desktop\᲻\Bots\DiscordTickets reaction\node_modules\discord.js\src\client\websocket\WebSocketManager.js:415:10)
at WebSocketShard. (C:\Users\Jesus\Desktop\᲻\Bots\DiscordTickets reaction\node_modules\discord.js\src\client\websocket\WebSocketManager.js:197:14)
at WebSocketShard.emit (events.js:315:20)
at WebSocketShard.checkReady (C:\Users\Jesus\Desktop\᲻\Bots\DiscordTickets reaction\node_modules\discord.js\src\client\websocket\WebSocketShard.js:475:12)
at WebSocketShard.onPacket (C:\Users\Jesus\Desktop\᲻\Bots\DiscordTickets reaction\node_modules\discord.js\src\client\websocket\WebSocketShard.js:447:16)
at WebSocketShard.onMessage (C:\Users\Jesus\Desktop\᲻\Bots\DiscordTickets reaction\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
[12:05:53 | WARN] An error was not caught
[12:05:53 | WARN] Uncaught TypeError: Cannot read property 'id' of undefined
[12:05:53 | ERROR] TypeError: Cannot read property 'id' of undefined
at Object.execute (C:\Users\Jesus\Desktop\᲻\Bots\DiscordTickets reaction\src\events\message.js:59:34)

error

[23:00:47 | WARN] An error was not caught
[23:00:47 | WARN] Uncaught TypeError: Cannot read property 'member' of undefined
[23:00:47 | ERROR] TypeError: Cannot read property 'member' of undefined
at Object.execute (C:\Users\cynthia\Desktop\DiscordTickets-master\src\events\ready.js:36:44)

Bug with rename and topic

Describe the bug
You can only rename or set the topic 1 time if you try it a second time it won't do it and (you try it the second time to rename of topic ) closing no longer works
To Reproduce
1.open a ticket
2 rename of retopic the ticket
3 rename of retop the ticket again
4 it won't rename or retopic it the second time and you can't close the ticket anymore white -close

Expected behavior
you shoud be able to rename or retopic the ticet multipele times and close the after that

Screenshots
screenshot are not necessary i think

Question

Can i self-hot the bot using windows?

Permission overwrites

Currently, the bot will create tickets with specific permissions overwrites (deny everyone, allow the bot, allow the support_role, and allow the creator). It would be better if the bot didn't overwrite the permissions from the parent/category when setting the ticket channel's permisssions.

List Users Involved in Ticket

Describe the solution you'd like
A list of users that have sent a message after the ticket has been closed in the logs. A lot of @ s of the users would be nice for us to look at our moderator's statistics on tickets.

Additional context
image
Possibly something similar to the above.

Support

Ive added the bot to my server and when I do "(prefix)new" it says that the ticket was created but no new channels are opened/created. I follow the step by step set-up wiki and not really sure where to go from here

Export error when launching the bot.

Describe the bug
I can't seem to be able to start the bot, as I keep getting this one export error from a module. I've attached the error message below. I've tried fresh installing but I still seem to be getting this issue.

To Reproduce
Steps to reproduce the behaviour:

  • Start the bot, it errors and crashes.

Expected behavior
A clear and concise description of what you expected to happen.

  • The bot starts and everything works.

Screenshots
If applicable, add screenshots to help explain your problem.
image
image
2020-09-06T11_48_53_312Z-debug.log

Multi panel support

Please add multi panel support, that you can create more panels and separate tickets to categories.

Support

First off, sorry for all the issues I've reported in the last few days.
Its been working fine when I've been hosting it locally but now I'm trying it online it wants none of it

Ive recently decided to start hosting the bot online and It keeps giving me this error I've asked multiple people and they've had no idea on how to help.

npm WARN @eartharoid/[email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @eartharoid/[email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @eartharoid/[email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @eartharoid/[email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

audited 355 packages in 13.958s

23 packages are looking for funding
run npm fund for details

found 0 vulnerabilities

This what happens when I start running it.

[18:13:18 | INFO] Using SQLite storage
/home/container/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:81
throw new Error(Please install ${moduleName} package manually);
^

Error: Please install sqlite3 package manually
at ConnectionManager._loadDialectModule (/home/container/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:81:15)
at new ConnectionManager (/home/container/node_modules/sequelize/lib/dialects/sqlite/connection-manager.js:24:21)
at new SqliteDialect (/home/container/node_modules/sequelize/lib/dialects/sqlite/index.js:15:30)
at new Sequelize (/home/container/node_modules/sequelize/lib/sequelize.js:340:20)
at Object. (/home/container/src/index.js:83:14)
at Module._compile (internal/modules/cjs/loader.js:1251:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1272:10)
at Module.load (internal/modules/cjs/loader.js:1100:32)
at Function.Module._load (internal/modules/cjs/loader.js:962:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
container@pterodactyl~ Server marked as offline...

Request of an -claim function

Hey,

first of all i love your Bot. It works perfectly for me but i got an feature that would be awsome if you can implement this.

if you could implement a -claim so that one Supporter can claim this Ticket, that would be great

Error when people react the embed

Describe the bug
When the people react the embed nothing call the event messageReactionAdd, so the emoji up to 2 and doesnt create a new ticket
Help!

Using JSDocs comments more to help with development of the bot

Is your feature request related to a problem? Please describe.
When developing on the bot, especially being new to the codebase, it may help to have tooltips with classes and functions which code editors have built-in. As there is not any documentation, people developing for the project and customising their bot may struggle to understand what is going on.

Describe the solution you'd like
By adding JSDocs to the functions, code editors such as VSCode are able to provide API documentation.
This wouldn't be difficult to implement, however, it would need to be updated whenever a change was made to the code in order to stay up to date. I don't at all mind working on this, as I know it may seem like a tedious task, but efforts will be nullified if they don't stay up to date.

Describe alternatives you've considered
The alternative is that it stays as it is. However, providing (even vague) documentation can help inspire more contributors to work on the bot, as well as giving a helpful reminder to anybody already working on the bot.

Additional context
Example of a tooltip that is generated with JSDocs

Bot does not start

Describe the bug
Bot just does not work

To Reproduce
Steps to reproduce the behaviour:
Setup bot?

Expected behavior
Bot should work

Screenshots
image

Additional context

Errors on commands: TypeError: fields.flat is not a function

Bot starts fine but when ever i run a command it errors out console log follows:
[03:10:02 | INFO] Authenticated as Novus Networks Dev#6711 [03:10:02 | INFO] 'ADMINISTRATOR' permission has been granted [03:10:24 | INFO] dahpr0gam3r#2405 used the 'new' command [03:10:24 | ERROR] TypeError: fields.flat is not a function at Function.normalizeFields (/home/ubuntu/bots/DiscordTickets-master/node_modules/discord.js/src/structures/MessageEmbed.js:450:8) at MessageEmbed.setup (/home/ubuntu/bots/DiscordTickets-master/node_modules/discord.js/src/structures/MessageEmbed.js:78:91) at new MessageEmbed (/home/ubuntu/bots/DiscordTickets-master/node_modules/discord.js/src/structures/MessageEmbed.js:18:10) at embedLikes.map.e (/home/ubuntu/bots/DiscordTickets-master/node_modules/discord.js/src/structures/APIMessage.js:166:40) at Array.map (<anonymous>) at APIMessage.resolveData (/home/ubuntu/bots/DiscordTickets-master/node_modules/discord.js/src/structures/APIMessage.js:166:31) at TextChannel.send (/home/ubuntu/bots/DiscordTickets-master/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:166:62) at guild.channels.create.then (/home/ubuntu/bots/DiscordTickets-master/src/commands/new.js:121:34) at process._tickCallback (internal/process/next_tick.js:68:7)

Token error

23:36:38 | LOGGER] Initialising logger (v2.0.5)
[23:36:38 | LOGGER] Preparing log file ("./logs/2020-10-16.log")
[23:36:39 | INFO] Connecting to MySQL database...
[23:36:39 | INFO] > Loaded debug event
[23:36:39 | INFO] > Loaded error event
[23:36:39 | INFO] > Loaded message event
[23:36:39 | INFO] > Loaded messageDelete event
[23:36:39 | INFO] > Loaded messageReactionAdd event
[23:36:39 | INFO] > Loaded messageUpdate event
[23:36:39 | INFO] > Loaded rateLimit event
[23:36:39 | INFO] > Loaded ready event
[23:36:39 | INFO] > Loaded warn event
[23:36:39 | INFO] > Loaded -add command
[23:36:39 | INFO] > Loaded -close command
[23:36:39 | INFO] > Loaded -delete command
[23:36:39 | INFO] > Loaded -help command
[23:36:39 | INFO] > Loaded -new command
[23:36:39 | INFO] > Loaded -panel command
[23:36:39 | INFO] > Loaded -remove command
[23:36:39 | INFO] > Loaded -rename command
[23:36:39 | INFO] > Loaded -stats command
[23:36:39 | INFO] > Loaded -tickets command
[23:36:39 | INFO] > Loaded -topic command
[23:36:39 | INFO] > Loaded -transcript command
[23:36:39 | INFO] Loaded 9 events and 12 commands
[23:36:39 | WARN] An error was not caught
[23:36:39 | WARN] Uncaught Error [TOKEN_INVALID]: An invalid token was provided.
[23:36:39 | ERROR] Error [TOKEN_INVALID]: An invalid token was provided.
at Client.login (/home/container/node_modules/discord.js/src/client/Client.js:205:52)
at Object. (/home/container/src/index.js:163:8)
at Module._compile (internal/modules/cjs/loader.js:1251:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1272:10)
at Module.load (internal/modules/cjs/loader.js:1100:32)
at Function.Module._load (internal/modules/cjs/loader.js:962:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
[23:36:39 | WARN] An error was not caught
[23:36:39 | WARN] Uncaught SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:3306
[23:36:39 | ERROR] SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:3306
at ConnectionManager.connect (/home/container/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:116:17)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async ConnectionManager._connect (/home/container/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:318:24)
at async /home/container/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:250:32
[23:36:39 | WARN] An error was not caught
[23:36:39 | WARN] Uncaught SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:3306
[23:36:39 | ERROR] SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:3306
at ConnectionManager.connect (/home/container/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:116:17)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async ConnectionManager._connect (/home/container/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:318:24)
at async /home/container/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:250:32
[23:36:40 | NOTICE] There is an update available for Discord Tickets (v2.0.1 -> v2.1.1)

resize: Time out occurred

Instantly closes node

Describe the bug
Downloaded and edited example-config.json to config.json filled in all IDs and token but node instantly closed when running index

Add that ticket logs will be uploaded to pastebin/hastebin.

Hello, can you add option to upload ticket transcripts to pastebin/hastebin? Instead of sending text file to Discord you can just send link to paste/haste and save it to database. Its annoying to download text file when you need to check ticket logs.

New Ticket

Open New Ticket
I try to create a new ticket and I get an error thinking that I already have one open, where is none.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'channel'
  2. Type '!new test (or anything)'
  3. See error 'You already have an open ticket.'

Screenshots
https://i.imgur.com/AyXJ5UB.png

Help please :)

So im trying to host my bot on pterodactyl panel and im struggling a bit on what goes where was just wondering if you could help quickly? Im quite new to hosting online

(prefix)closeall

Is your feature request related to a problem? Please describe.
Nope.
Describe the solution you'd like
This command would close every single ticket that is currently open. Another command that could go with this would be (prefix)deleteall. This would delete every single ticket.

Describe alternatives you've considered
N/A
Additional context
N/A

Uncaught TypeError: Cannot read property 'member' of undefined node

After install and first running the bot, I'm receiving the following error.

`[11:23:48 | WARN] An error was not caught
[11:23:48 | WARN] Uncaught TypeError: Cannot read property 'member' of undefined
[11:23:48 | ERROR] TypeError: Cannot read property 'member' of undefined
at Object.execute (/root/DiscordTickets/src/events/ready.js:37:44)
at Client. (/root/DiscordTickets/src/index.js:132:68)
at Client.emit (events.js:315:20)
at WebSocketManager.triggerClientReady (/root/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketManager.js:431:17)
at WebSocketManager.checkShardsReady (/root/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketManager.js:415:10)
at WebSocketShard. (/root/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketManager.js:197:14)
at WebSocketShard.emit (events.js:315:20)
at WebSocketShard.checkReady (/root/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketShard.js:475:12)
at Object.module.exports [as READY] (/root/DiscordTickets/node_modules/discord.js/src/client/websocket/handlers/READY.js:20:9)
at WebSocketManager.handlePacket (/root/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)

`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.