r/gdpr•
CoderCandy

Small, privately developed, discord bot. Do I need to worry about GDPR?

I've tried to read up on GDPR, and from what I've gathered, I actually do store some information considered "personal data" in the database for my bot.

I store some preferences linked to the discord ID number, and I also store some user provided messages, indirectly linked to the user.

I do not store anything identifiable in a structured form, if a user deletes their discord account, all I have is a number that I cannot link to anything else.

The messages I store are mainly messages that the user requested not to be viewable without consent from other users, basically it's a spoiler command, you prefix a message with `p!spoiler` and the bot removes that message, and stores a copy of it in its database and then sends the stored message to people who request it in private.

Does this count as personal data collection, am I covered by the fact that everything gets anonymized if the user requests deletion from Discord itself? I'm not running a webserver for my bot, so if I need to be GDPR compliant, would it be enough to have a "request my data" command and have that sent as an attachment to the user trough discord?

I know this may sound silly, but I really really really don't want to get struck with a 20 million EUR fine just because I made a spoiler command for discord...

Posted Jul 9, 2018, 8:08 PM UTC

412
mywarthog•

So, I'm actually actively involved in the Discord bot development community. This is the current interpretation of things.

- Bots are generally not commercial endeavors, and therefore are exempt from the GDPR, as they are considered a private hobby.

- The above changes should you sell perks such as enhanced guild message logging for guild owners, special backgrounds for commands, special commands, etc. Donations on their own do not constitute a commercial activity, provided no service improvements are established from the bot.

- You're techincally, by the letter of the API TOS, only required to respect erasure requests from users. However, to my klnowledge to date, Discord has not e-mailed any bot creators to delete data, and I have not heard of any instances of deletions being actively enforced on bots.

- The bot on its own is a controller. Guilds on their owns are controllers as well, depending on how you interpret the ECJ's recent decision on Facebook fan pages. The guild owner consents for all users in that guild.

- Discord T&S has stated in the past that you are not required to follow the GDPR in Discord's eyes. All they care about is that you are following the API ToS.

- You should really only be concerned about the practical threat of a fine if you're located within the EU.

That all said, Discord's GDPR compliance is very faulty on its own. And truth be told, their "Request My Data" function is a data breach waiting to happen, in that it you can retrieve messages from channels that you no longer have access to - including any confidential information or PII you may have transmitted in regards to other users. Discord does not scan for nor filter this out.

Hope this all helps.

6
CoderCandyOP•

As far as I've been able to tell, nonprofit/noncommercial does not excempt someone from GDPR, It's about data collecting/processing/consent, not intent or profitability

Discords T&S can only make rules stricter than required by law, not looser, so that's rather moot...

I'm located in the EU. Based in Sweden, very much EU.

I don't really have any issues implementing the consent and other stuff into my bot. My main issue is the fact that according to GDPR, if I understood stuff correctly, I need some recognized people responsible for certain aspects of the data collecting/processing, and get independent audits of my security and whatnot. I can barely afford getting food on my table, let alone paying someone to audit my discord bot...

3
kevin4076•

Good news is you don't have to have other people responsible for the GDPR stuff. You can do it all yourself so long as you are aware of possible conflicts of interest. For micro-businesses (which is what you are), you cannot be expected to fund multiple staff just to handle this one function.

Second you do not require an external audit (unless the Swedish regulations are different). Any competent person can review the security and recommend changes to improve it. In a micro-business then that person is you.

The point about GDPR in a very small business is to show that you are taking GDPR seriously, have taken steps to ensure the privacy and security of the data and regularly review everything to ensure it's up to date. Do that and document it and you will be fine.

3
Werkgerelateerd•

Technically you are right. Did you know that even posting a video on YouTube would make you fall under the GDPR (as far as the video has personal data in it)

so if I need to be GDPR compliant, would it be enough to have a "request my data" command and have that sent as an attachment to the user trough discord?

You need to be able to comply with a few rights, not only insight in their data. However if you are able you could do it yourself, there is no need to have it automated. If you can get messages that clarify what users want, and you could do it manually then that would be fine as long as you do it within 30 days.

There are a bunch of other things you technically would need to comply with (just like every YouTube account should technically have their own privacy policy, art.30 register, and a databreach register) however no one has those.

If you really do want a privacy policy, the text below would prolly be more than enough in your case. the art. 30 register could be a single line in a word document somewhere.

I store some preferences linked to the discord ID number, and I also store some user provided messages, indirectly linked to the user. I do not store anything identifiable in a structured form, if a user deletes their discord account, all I have is a number that I cannot link to anything else. The messages I store are mainly messages that the user requested not to be viewable without consent from other users, basically it's a spoiler command, you prefix a message with p!spoiler and the bot removes that message, and stores a copy of it in its database and then sends the stored message to people who request it in private.

Also your title, do you need to worry about the GDPR, no you don't need to worry at all. But if you want to do stuff to get peace of mind then you could do some stuff.

1
RoughSeaworthiness•
  • Bots are generally not commercial endeavors, and therefore are exempt from the GDPR, as they are considered a private hobby.

But that still falls under GDPR?

1
mywarthog•

No, private hobbies do not. See Recital 23.

1
RoughSeaworthiness•

Recital 23 is about data processors outside of the EU. It also has a passage that mentions that the regulation applies regardless of payment for services.

You night be talking about article 2, section 2. But that one is likely intended for things like having an address book, rather than running a website.

1
mywarthog•

I got numbers mixed up. The one that talks about personal hobbies.

CBF to look at the recitals atm

1
Wizzad•

About the fines:

You don't just get fined out of the blue, so don't worry too much about that. The fact that you're asking for advice shows that you're thinking about it and you're taking it seriously. The GDPR is about responsible personal data handling.

You can take a look at article 83 to see how organizations can "win" the maximum fine. Basically: be intentionally negligent, make sure to endanger lots of important personal data, and don't cooperate when you are contacted by the regulators.

About your service:

Are you offering a (free) service that anyone can use? How do you attract users?

If it's not a service that you're offering to anyone but rather a casual thing that you and your friends use then it's outside the scope of the GDPR, perhaps your bot is casual enough to be exempt as well. Check whether article 2.2.c applies to you.

Can anyone store any message?

If anyone can store any message then you should consider encrypting the messages while they're in your database because someone might be stupid enough to store important personal information. In turn your database might get hacked and suddenly you're responsible for leaking important information.

Do users need permission of the message creator to view a message?

If users need permission of the message creator to view the message then it shows you're taking their privacy seriously.

Can anyone request to view all their stored messages? Can a message creator delete their messages?

If a message creator can view and delete their messages at any point then you're giving them control over the information they store. You could also make a 'delete all' command to make it even easier for users to manage their stored data. Consider automatically deleting messages if a user has not used your service for a certain amount of time.

2
CoderCandyOP•

It's not a public bot, it's a bot for a network of servers where I'm a moderator.

As for if it's a service I'm offering, it depends on the definition of "service". The community the bot is running in is not just "me and my friends" but a public community. The community is not there to attract users to give my bot data, but my bot is there to provide ... well, a service, for the community. We attract users by sharing the discord link to our community on relevant forums from time to time. If a user joins and never explicitly interacts with the bot, no data is stored.

The messages can only be viewed by users who share the channel the message got posted in.

I don't actually store which user posted which message, since that was irrelevant data to store. I only store the message-id of the replacement message my bot creates, so I know which replacement message corresponds to what message in the database. The user ID of who the message is about is technically accessible if I fetch the content of the replacement message and look for who the bot mentioned in that message as the author of the message. But it's not stored in any easily searchable way due to the fact that, in the event of a data breach, I wouldn't want messages to be connectable to a user unless you already had access to the message trough discord, meaning you could simply ask the bot to PM you the message.

I guess I could store a salted hash instead of the user-id in plaintext. That way I can search for messages created by a known user, but not retrieve which user created a known message.

Same could be done for user preferences.

As for "can anyone view the message", no. Only people who would have had access to the message had it not gone trough my bot will have access to view the message. This limitation is enforced by discord, as I'm using message reactions to detect who to distribute the message to, and only users who would have been able to read the original message will be able to read the stored message.

One issue is the fact that the data will be copied multiple times into direct messages to users who request to view the spoiler. I'm unsure about the feasibility to clear out messages the bot has sent trough DM's in bulk. It might not matter that much for "spoilers", but I also have "triggerwarning" or "contentwarning" which works similarly, but is often used to hide particularly troubling and often sensitive personal information from people who do not opt in to view it. I'm not doing any processing or analysis of the data, I'm mainly just storing it for redistribution to people who opt in to view things that everyone might not want to see.

(And yes, I do care about the privacy of my users, I even have some systems in place which are more strict than what GDPR enforces. Namely, a user can opt-out to be in the same voice channel as you. If you are in a voice channel and have opted not to have my bot present, it will refuse to join that channel as long as you have not muted your microphone. If you were to unmute or change your preference regarding this while the bot is present, it will promptly leave the voice channel. I'm not collecting any voice data either way, I'm not even receiving the data from discord, but I included it as an option for people who do not trust me as a developer, and still want a way to partake in the community freely, while not feeling like they're being recorded)

Another thing I'm wondering about is, since this is a small project, and while the community at large could not be considered "me and my friends", some of them are, and sometimes code in jokes just for fun. Like one thing I've implemented is that the bot counts the amount of times a user has said the word "cult", and spits that out to anyone who requests it. (This is an inside joke, don't think about it). What are the legalities of this? ... Well, technically that user is US based, and not EU based, so this falls outside GDPR, but if that user would have been in the EU, could the fact that I have a personal relationship with the person make implicit consent appropriate? Or does GDPR mean I can't make silly jokes for fun anymore?

2
[deleted]•

[deleted]

0
dirtypeanut•

IANAL

GDPR shouldn't apply to you, as others have stated it should fall under "personal or household activity". If your Discord server is large-scale and has thousands of people in it though, that might be more problematic to classify as such.

Aside from whether GDPR applies to you or not, I would suggest a couple best practices:

  1. One-way hash the Discord ID number if you can make the bot work with it. This way you don't ever have to worry about erasure or access requests.
  2. Purge stored messages periodically and automatically, as frequently as you can but still providing the functionality that you want. There's a small chance that there's PII in messages that you store. The quickly they're purged, the less liability you have.
1
mywarthog•

If there's no financial income or any reason to believe that it's a commercial endeavor, even with thousands of people, OP should be fine. See Recital 23 in the law.

1