Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chatchart] Data API #142

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions chatchart/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from .chatchart import Chatchart
from pathlib import Path
import json

with open(Path(__file__).parent / "info.json") as fp:
__red_end_user_data_statement__ = json.load(fp)["end_user_data_statement"]

def setup(bot):
bot.add_cog(Chatchart(bot))
3 changes: 3 additions & 0 deletions chatchart/chatchart.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ class Chatchart(commands.Cog):

def __init__(self, bot):
self.bot = bot

async def red_delete_data_for_user(self,*,requester,user_id):
pass #No EUD is stored but this function is needed so the API knows that deletion was "handled"

def create_chart(self, top, others, channel):
plt.clf()
Expand Down
5 changes: 3 additions & 2 deletions chatchart/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"requirements": [
"matplotlib"
],
"type": "COG"
}
"type": "COG",
"end_user_data_statement":"This cog does not store end user data."
}