-
Notifications
You must be signed in to change notification settings - Fork 17
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
3.8.0: Filters, Room settings and more #189
base: main
Are you sure you want to change the base?
Conversation
cogs/badge.py
Outdated
self.unifier_team_data = {} | ||
self.check_unifier_team.start() | ||
|
||
@tasks.loop(minutes=30) | ||
async def check_unifier_team(self): | ||
url = "https://colab.unifierhq.org/data.json" | ||
async with aiohttp.ClientSession() as session: | ||
async with session.get(url) as response: | ||
if response.status == 200: | ||
self.unifier_team_data = await response.json() | ||
else: | ||
self.logger.warning(f"Failed to fetch Unifier team data: {response.status}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could just do this by having a json file on the repo (or another) tbh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is https://github.com/UnifierHQ/colaborators , but a GET requests is faster and more lightweight.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that explains the cname, but consider renaming that to "collaborators" since that's the correct spelling
same goes for the subdomain
Add a little message in badge for the Unifier Team.
Checklist
Details
Tests
Relevant issues