Git Product home page Git Product logo

cg-discord-event-sync's People

Contributors

moralcode avatar

Watchers

 avatar  avatar

cg-discord-event-sync's Issues

allow the campusgroups domain to be changed

currently the campusgroups domain is hardcoded to RIT's domain in campusgroups.py. It might be nice to be able to change this later in case other schools want to use this too.

dockerize

packaging the bot as a dockerfile makes it way easier to host. This ensures people using the oauth link in the readme can run a usable bot instance

an example of a similar, already-dockerized discord bot is at https://github.com/MoralCode/velmabot, so it should be pretty simple to tweak and apply that to this bot

set up automatic/scheduled sync to replace the manual $sync command

having to manually run the $sync command may be a bit of a hassle. it would be nice to set this up so that it can resync the events for all servers on a schedule

see https://github.com/MoralCode/velmabot/ for an example of how to schedule things in a dyscord.py bot (there may be better ways though)

some sub tasks this may involve:

  • figure out how to retrieve a discord.py Guild instance using only the guild/server ID as the sync command currently uses the server that the sync message was posted to
  • separate the process of downloading the campusgroups calendars from parsing them to reduce load on campusgroups when many servers subscribe to the same group

Find a way to properly authenticate with campusgroups

Currently this just works by using the publicly-available ical feeds from campusgroups, which notably do not include:

  • events not visible to "everyone"
  • event locations

I would like to find a way to create some kind of separate set of credentials for this campusgroups bot so that it can authenticate rather than using the session cookies from my own account.

It should probably be noted that providing this bot with authenticated access may end up being a source through which private information could be leaked since may clubs aren't especially protective over who can join their discord or where invite links get shared, so these servers should probably be considered public, even if the chances of them being seen/found by non-students is quite low.

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.