Code Monkey home page Code Monkey logo

lehrbot's People

Contributors

dwm9636 avatar printer56 avatar rjw7809 avatar rwitus avatar

Stargazers

 avatar

Watchers

 avatar  avatar

lehrbot's Issues

Document bot/server setup, commands in GitHub Wiki

BrickHack and other hackathon servers will likely be setup by people without intimate knowledge of this bot's inner workings. Proper documentation is needed to explain how to correctly setup these servers so that the bot may function effectively.

Automate placing participants into topic channels

Currently, it is left up to each mentor and mentee to determine how to communicate. A nice feature would be to automate moving each pair into a voice channel when the mentor sends the ~ready command. Here's the current plan for implementing this:

  • A user enters a "waiting" room voice channel (force mute/deafen all clients)
  • User types ~queue <topic>
  • Mentor enters a dedicated voice channel for topic
  • Mentor types ~ready <topic>, removing user from queue
  • Student is moved by bot into dedicated voice channel

A couple of considerations:

  • Accessibility: how can we replicate this with text channels for deaf/HoH users?
  • Scaling: how can we scale this up to an arbitrary number of mentor-mentee meetings for each topic?

Make topic names server-unique instead of globally-unique

The current queue implementation works across multiple Discord servers, but each topic name must be unique across all servers, not within a single server. This makes it unfeasible for public distribution. A possible solution would be to store queue lists in a {Guild: List[Queue]} dictionary.

Refactor "class" to "topic"

The term "class" makes sense in the context of mentoring for college courses, but less so in the context of BrickHack. Renaming it to "topic" will help to avoid confusion.

Restrict mentor commands to roles instead of admin

Currently, only administrators are allowed to use mentor commands like ~ready. However, this is insecure in production, especially considering the large number of (unvetted) mentors that could be participating in BrickHack. Checking for the existing topic roles instead of administrator status would alleviate this issue.

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.