-
Notifications
You must be signed in to change notification settings - Fork 6
Implementation of the Lunch Buddy feature #167
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
Merged
Merged
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
6237660
update: checking if perms work
mi-mott d6628a3
Chron job set for every minute, basic embed added and structure for t…
mi-mott 37ac8d6
Updated README
mi-mott 888fbb7
Implemented area voting system
Domin0de e175de7
Ran linting and prettier for current changes
Domin0de 65f5fb7
Appending location poll for given area, and vote counting for both ar…
Domin0de 492b13c
Implemented functional voting system for area and location, creating …
Domin0de faad7d3
Used await and cleaned up a bit of code, thread now adds all voters n…
mi-mott 1cb8e88
Lint fix
mi-mott 2a532ad
Removed promises and adjusted placement of vote function calls
Domin0de cf0f156
Merge branch 'develop' of https://github.com/csesoc/discord-bot into …
Domin0de 9819756
Adjusted thread users, append location vote pings
Domin0de 12d6c03
Linting fixes
Domin0de 9536332
Locations Update
Domin0de 72f9cd1
Adds "any" option and append additional vote info
Domin0de a415a94
Appended code for live run timing
Domin0de 051144a
Update to use config file
Domin0de 310ccea
Allow disabling of feature without editing code and disable
Domin0de 541b8f5
Minor adjustment to readme and npm commands
Domin0de 3d5a97e
Appended clarifying comment regarding edge case of only any votes
Domin0de File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,4 +6,4 @@ user: user | |
| dbname: bot | ||
| password: pass | ||
| host: 0.0.0.0 | ||
| port: 40041 | ||
| port: 40041 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "voteOriginId": "959995388289495050", | ||
| "threadDestinationId": "959995388289495050", | ||
| "interactionTimeout": 360000, | ||
| "cronString": "" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| { | ||
| "users": [], | ||
| "channels": [] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,121 @@ | ||
| const locations = [ | ||
| { | ||
| value: "Upper Campus Food Court", | ||
| sub: [ | ||
| { | ||
| name: "Tropical Green Pho", | ||
| }, | ||
| { | ||
| name: "Pho House", | ||
| }, | ||
| { | ||
| name: "Classic Kebab", | ||
| }, | ||
| { | ||
| name: "Chinese Takeaway", | ||
| }, | ||
| { | ||
| name: "Tori Sushi", | ||
| }, | ||
| { | ||
| name: "Gradu-eat", | ||
| }, | ||
| { | ||
| name: "The Little Marionette Cafe", | ||
| }, | ||
| { | ||
| name: "Lhaksa Delight", | ||
| }, | ||
| { | ||
| name: "Bioscience building Cafe (XS Espresso)", | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| value: "Subway Zone", | ||
| sub: [ | ||
| { | ||
| name: "Subway", | ||
| }, | ||
| { | ||
| name: "Boost", | ||
| }, | ||
| { | ||
| name: "Southern Wok", | ||
| }, | ||
| { | ||
| name: "Cafe Brioso", | ||
| }, | ||
| { | ||
| name: "Penny Lane", | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| value: "Quadrangle Food Court", | ||
| sub: [ | ||
| { | ||
| name: "Soul Origin", | ||
| }, | ||
| { | ||
| name: "PappaRich", | ||
| }, | ||
| { | ||
| name: "Nene Chicken", | ||
| }, | ||
| { | ||
| name: "Plume Cafe", | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| value: "Lower Campus", | ||
| sub: [ | ||
| { | ||
| name: "Stellinis Pasta Bar", | ||
| }, | ||
| { | ||
| name: "Guzman Y Gomez", | ||
| }, | ||
| { | ||
| name: "Mamak Village", | ||
| }, | ||
| { | ||
| name: "Yallah Eats Kebab and Shawarma", | ||
| }, | ||
| { | ||
| name: "Sharetea", | ||
| }, | ||
| { | ||
| name: "Maze Coffee & Food", | ||
| }, | ||
| { | ||
| name: "Campus Village Cafe", | ||
| }, | ||
| { | ||
| name: "Home Ground Kiosk", | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| value: "J17 Ainsworth", | ||
| sub: [ | ||
| { | ||
| name: "Coffee on Campus Cafe", | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| value: "Other Options", | ||
| sub: [ | ||
| { | ||
| name: "Sport", | ||
| }, | ||
| { | ||
| name: "On Campus Study", | ||
| }, | ||
| ], | ||
| }, | ||
| ]; | ||
|
|
||
| exports.locations = locations; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.