Skip to content

GabrielDTB/classy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Classy for Stevens Institute of Technology.

Classy is a helpful discord bot for getting information about classes. If you would like to add it to your server, message me (rustaceous) on Discord.

Self hosting the bot

Supply your Discord bot token as the DISCORD_TOKEN environment variable.

Responses and parsed classes are cached in ./cache. If you must delete the cache, startup will take some time to query all the courses since the requests are asynchronous but sequential. After a successful startup, responses and classes will become cached for the next restart.

Contributing

Set up your rust environment and ensure that you can successfully cargo run. If you get an error that your discord token is missing, see self hosting the bot.

The application logic is currently broken up as follows:

main.rs -- Handles the bot logic
catalog.rs -- Provides all course database interaction and initialization logic
class.rs -- Provides an interface for single classes
get_classes.rs -- Needs refactoring but this handles the internet-catalog facing logic of querying classes for now
traits.rs -- Provides a more general interface that derivatives should provide

Pull requests welcome. Please interact with an open issue before taking it on, or open a new issue if one does not exist yet!


License

Licensed under Apache License, Version 2.0 or MIT license at your discretion.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
(Not affiliated in any way with Stevens Institute of Technology).

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published