discord-tickets / bot

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.
https://discordtickets.app
GNU General Public License v3.0
945 stars 475 forks source link

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

Closed wolfier74 closed 2 years ago

wolfier74 commented 3 years ago

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.

wolfier74 commented 3 years ago

You can use https://www.npmjs.com/package/@catte_/pastebin.js and https://www.npmjs.com/package/hastebin.js

FatGrizzly commented 3 years ago

This is nice, but all the ticket stuff will be publicly available on the internet and that would violate Discord's TOS

wolfier74 commented 3 years ago

Yes but I dont think that someone will find it. On hastebin there is no search and on pastebin you can make unlisted and private pastes. And this option should be optional to upload transcripts to pastebin or hastebin instead of sending them in txt file to discord.

Sarveshmrao commented 3 years ago

@wolfier74 I wonder why you need to put that in paste or hastebin. There is a DiscordTickets-Portal Repo. Just self host that. It'll look professional. It'll give you a link when the ticket gets closed. Click that and read the convo with similar UI as Discord.

wolfier74 commented 3 years ago

@Sarveshmrao On portal there are logs public too. There is no oauth protection. Everyone can view logs. And also its annoying to always download text file from Discord to check ticket logs, the hastebin/pastebin option for logs will solve this, not everyone needs to host additional portal.

Sarveshmrao commented 3 years ago

@Sarveshmrao On portal there are logs public too. There is no oauth protection. Everyone can view logs. And also its annoying to always download text file from Discord to check ticket logs, the hastebin/pastebin option for logs will solve this, not everyone needs to host additional portal.

@wolfier74 the tickets in the portal can only be accessed using the URL given. It's not picked up by the crawlers. Also the ticket is uploaded to the portal only after after ticket is closed. I know that downloading text file that too on mobile is pretty annoying thats the reason for for Portal. Also portal doesn't need a OAuth Authentication. As it'll make the setup more difficult. But anyone with the URL to the ticket can access it. It also has an option to delete the tickets after X time. I guess portal is the best option.

eartharoid commented 3 years ago

I am planning on adding oauth to the portal.

wolfier74 commented 3 years ago

Will you also add hastebin/pastebin option?

FatGrizzly commented 3 years ago

Well, no one wants to upload their tickets/chats to pastebin/hastebin... You can implement yourself tho

eartharoid commented 3 years ago

I'd prefer to make text transcripts part of the portal instead of uploading them to a third party, but I might add this as an option for those that don't want to host the portal.

ririko5834 commented 3 years ago

I'd prefer to make text transcripts part of the portal instead of uploading them to a third party, but I might add this as an option for those that don't want to host the portal.

Ok this is good, that users can choose if they want to use portal text transcripts or upload them to pastebin/hastebin

eartharoid commented 3 years ago

As Discord now shows the contents of plain text files in the UI is this still necessary? You can read the transcript on Discord without needing to download and open the file.

wolfier74 commented 3 years ago

Yes, on mobile you cannot view it. Also it will be better when the bot will send embed with details to log channel when ticket was opened, claimed, renamed, user added, user removed, topic changed and ticket closed. When ticket was closed, add embed field with link to hastebin logs

anondev-sudo commented 3 years ago

I agree with this, the portal should be created and option to upload the logs to hastebin.com would be nice too

anondev-sudo commented 3 years ago

Maybe the portal should be part of the bot itself, and it should be option so you don't have to enable it

eartharoid commented 2 years ago

Support for uploading to third parties will not be added as there is no guarantee of security and it would be difficult for a user to get their data deleted.