acm-mu / cyberta Goto Github PK
View Code? Open in Web Editor NEWA node.js Discord bot created to help manage help queues for TA Office Hours during the COVID-19 Pandemic.
A node.js Discord bot created to help manage help queues for TA Office Hours during the COVID-19 Pandemic.
Show the students where they are in the queue when they type !queue.
!queue
There are currently 10 people in the queue. You are #4!
Per students request.
A command that would allow for TAs to go AFK.
In the event that they would have to use the bathroom or get a drink in between helping groups.
Avery Request:
"A non-alert remove that doesn't alert students so that we can delete privately"
Feature request:
Jack Requested:
"Persistent Queue so that the Bot won't fail/crash in the middle of office hours"
Remove all identifying ties to Operating Systems TA's.
Such as:
Jack/Student Requested:
"Offline mode to tell students that a TA is getting off for the night. Offline mode to tell that no TA's are on."
Feature Request:
A feature that allows one TA to turn another TA to offline status, in case they forget.
Use could be !offline "user ID" or "username"
Avery forget to go !offline at the end of the session. Jack wants to set everyone to offline by 10:00pm so that everyone knows that the TAs are off.
Jack: !offline @Avery
It would be annoying to have a TA left online when they are no longer online.
https://github.com/Jl5her/CyberTA/blob/2f6f71497b9b05cffb7c597d992edbc8a8dbb2be/officehours.js#L36
https://github.com/Jl5her/CyberTA/blob/2f6f71497b9b05cffb7c597d992edbc8a8dbb2be/officehours.js#L250
throws error when executing !ready
when person in queue
const msg = queue[readyIndex].message;
^
TypeError: Cannot read property 'message' of undefined
at ready (E:\Programs\gitrepos\CyberTA\officehours.js:36:33)
at Object.exports.onReady (E:\Programs\gitrepos\CyberTA\officehours.js:250:3)
at Client.<anonymous> (E:\Programs\gitrepos\CyberTA\bot.js:72:19)
at Client.emit (events.js:315:20)
at MessageCreateAction.handle (E:\Programs\gitrepos\CyberTA\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (E:\Programs\gitrepos\CyberTA\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (E:\Programs\gitrepos\CyberTA\node_modules\discord.js\src\client\websocket\WebSocketManager.js:386:31)
at WebSocketShard.onPacket (E:\Programs\gitrepos\CyberTA\node_modules\discord.js\src\client\websocket\WebSocketShard.js:435:22)
at WebSocketShard.onMessage (E:\Programs\gitrepos\CyberTA\node_modules\discord.js\src\client\websocket\WebSocketShard.js:293:10)
at WebSocket.onMessage (E:\Programs\gitrepos\CyberTA\node_modules\ws\lib\event-target.js:120:16)```
Brad Requested:
"Clear command for the queue as well as !next messages for the sake of cleanliness."
Feature Request:
Student requested:
"I'd like to remove myself from the list"
When a TA does !ready, if they don't have a nickname it prints null
is ready.
Must be a TA to replicate. Reset your nickname, add something to the queue, and ready from the TA_CHANNEL.
Instead should use username if they don't have a nickname.
TAs name is null, and the students don't know who is ready for them.
@6:00 Friday April 3rd:
Brad experienced a crash when readying a user due to unknown reasons.
Name of User: John Austin
Could be for a number of reasons:
Error Log:
2020-04-03T22:52:01.058610+00:00 app[worker.1]: at Client.<anonymous> (/app/bot.js:26:25)
2020-04-03T22:52:01.058611+00:00 app[worker.1]: at Client.emit (events.js:311:20)
2020-04-03T22:52:01.058620+00:00 app[worker.1]: at MessageCreateAction.handle (/app/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
2020-04-03T22:52:01.058622+00:00 app[worker.1]: at Object.module.exports [as MESSAGE_CREATE] (/app/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
2020-04-03T22:52:01.058623+00:00 app[worker.1]: at WebSocketManager.handlePacket (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:386:31)
2020-04-03T22:52:01.058623+00:00 app[worker.1]: at WebSocketShard.onPacket (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:435:22)
2020-04-03T22:52:01.058623+00:00 app[worker.1]: at WebSocketShard.onMessage (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:293:10)
2020-04-03T22:52:01.058624+00:00 app[worker.1]: at WebSocket.onMessage (/app/node_modules/ws/lib/event-target.js:120:16)
2020-04-03T22:52:01.255157+00:00 heroku[worker.1]: State changed from up to crashed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.