GithubHelp home page GithubHelp logo

p5quared / discord-bot Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 3.0 249 KB

This is the root of the BMCC Programming Club's discord bot.

License: MIT License

Python 99.39% Dockerfile 0.61%
club-management discord-py

discord-bot's Introduction

BUYSELL

discord-bot's People

Contributors

abirmahmood6 avatar flo03 avatar p5quared avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

discord-bot's Issues

Attendance Date

The attendance command currently says "Attendance for DATE".
We should replace DATE with the actual date. We should not have to write it every time.

Use Datetime to format the date. I prefer the format:

Jan 01

I think year is unnecessary.

Function Refactor

It might be a good idea to create a file, something like 'function-utils' to store all bot functions. Each function call in main would call a function imported from function-utils.

Reaction Roles: Hardcode

I set up the reaction manager function to read reaction role info from a file, but I think this is honestly a little bit overkill for our purposes. It makes sense for scalability (we could implement feature to create an infinite number of roles), but I'm afraid this system might confuse people and make changing or adding roles ironically more difficult.

I would like to change the reaction role command to have each role hardcoded in. i.e. each role is a separate function/path within $rm.

Refactor: Multi-Messages

There are many instances in the program where we want to send multiple lines of text to users. Often, we are doing this with multiple calls to ctx.send('asdf') or similar. I am pretty sure this is a bad practice because it is splitting up what should be one server request into several.

Most if not all instances where we are using ctx.send() multiple times in a row should be replaced by ctx.send("line1\nline2\n...etc")

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.