24 Hour Programming Challenge: Result

Discussion in 'Plugins and Coding' started by mitgobla, Jul 25, 2019.

Tags:
  1. mitgobla

    mitgobla Designer
    Staff Member Designer

    Messages:
    136
    Likes Received:
    341
    Trophy Points:
    74
    mitgobla
    Designer
    PLUS
    So I decided to challenge myself and program some software in under 24 hours. Here is what I have created!

    CubeCraft Infraction Search tool
    Programmed in Python and using the QT framework, this tool is a quick way to find out about past & current punishments for a specific user on CubeCraft.

    Features
    - Simple interface, themed around the current CubeCraft appeals site.
    - Detection for different ban types (Sentinel/moderator) & the status of the infraction.
    - Information panel to display the moderator who banned the user & the reason.

    Screenshots (click to expand)
    1.PNG 2.PNG 3.PNG

    Let me know what you think!
    There are a lot of features I wanted to add (such as NameMC history lookup, the ability to appeal within the program, etc.) but I was unable to do so because of the time limit I had set myself. Would you want to see this being worked on further?
     
    SanCookie, Yoya, Elivat and 18 others like this.
  2. Blocky

    Blocky Member

    Messages:
    622
    Likes Received:
    1,940
    Trophy Points:
    298
    blocky12
    Obsidian
    PLUS
    I need this
     
    mitgobla likes this.
  3. mitgobla

    mitgobla Designer
    Staff Member Designer

    Messages:
    136
    Likes Received:
    341
    Trophy Points:
    74
    mitgobla
    Designer
    PLUS
    4.PNG
     
    CraftCreatures likes this.
  4. Onikpig

    Onikpig Member

    Messages:
    184
    Likes Received:
    223
    Trophy Points:
    78
    Onikpig
    Obsidian
    PLUS
    Looking good so far, can't wait to see the final product :eek:
    Lemme be like every new forums person: Excellent idea, I agree +1, I rate this 11/10
     
  5. MrGrumpyCheese

    MrGrumpyCheese Member

    Messages:
    462
    Likes Received:
    1,139
    Trophy Points:
    163
    MrGrumpyCheese
    Gold
    So how does it work? I’m guessing it sends a request for the corresponding appeals page and somehow reads the relevant HTML elements?
     
    mitgobla likes this.
  6. mitgobla

    mitgobla Designer
    Staff Member Designer

    Messages:
    136
    Likes Received:
    341
    Trophy Points:
    74
    mitgobla
    Designer
    PLUS
    correct. it's rate limited too so it doesn't get you blocked out from sending too many requests.
    would love an API haha.
     
    MrGrumpyCheese likes this.
  7. Elenahh

    Elenahh Member

    Messages:
    909
    Likes Received:
    3,394
    Trophy Points:
    324
    Elenahh
    Obsidian
    You're some very talented Microsofter. Moar pls.
     
    mitgobla likes this.
  8. mitgobla

    mitgobla Designer
    Staff Member Designer

    Messages:
    136
    Likes Received:
    341
    Trophy Points:
    74
    mitgobla
    Designer
    PLUS
    thanks nooblet
     
  9. MrGrumpyCheese

    MrGrumpyCheese Member

    Messages:
    462
    Likes Received:
    1,139
    Trophy Points:
    163
    MrGrumpyCheese
    Gold
    Some other cool features would be:
    • It could display the player's base rank by viewing the store page. This wouldn't show staff ranks.
    • It could list the player's leaderboard positions using the leaderboards site.
    • It could search the forums for a member of the same name. It could even validate that this is the same person by looking at the linked account. If you got their rank from here you would be able to show staff ranks.

    That would be magnificent. They do have something for rendering players' skins already:
    https://api.cubecraft.net/skins/ind...lse&user=40715799-cf55-4201-aa15-6485631d9690
    You can also modify the position the player is in and remove their hair layer etc:
    https://api.cubecraft.net/skins/ind...lse&user=7e8f3329-dd14-46f3-a712-1a502870f7ac
     
    Elivat likes this.
  10. mitgobla

    mitgobla Designer
    Staff Member Designer

    Messages:
    136
    Likes Received:
    341
    Trophy Points:
    74
    mitgobla
    Designer
    PLUS
    Yeah noticed that when I was extracting the HTML elements, messed around with it a bit haha.
     
  11. LittleYellowLion

    LittleYellowLion Member

    Messages:
    480
    Likes Received:
    166
    Trophy Points:
    83
    il0v3anna
    Obsidian
    PLUS
    thats looks really good can we also find it somewhere?
     
  12. CraftCreatures

    CraftCreatures Member

    Messages:
    616
    Likes Received:
    242
    Trophy Points:
    83
    CraftCreatures
    Emerald
    Good job! Looks really easy to use. :)
     
    mitgobla likes this.
  13. mitgobla

    mitgobla Designer
    Staff Member Designer

    Messages:
    136
    Likes Received:
    341
    Trophy Points:
    74
    mitgobla
    Designer
    PLUS
    Thank you :D

    Thanks! It's not avaliable to use anywhere, mainly because I don't want to publish something that I literally made in a day. I'd rather have it at its best quality before publishing.
     
  14. Haighers112

    Haighers112 Member

    Messages:
    35
    Likes Received:
    44
    Trophy Points:
    19
    Excellent idea, I agree +1, I rate this 11/10
     
    mitgobla likes this.
  15. mitgobla

    mitgobla Designer
    Staff Member Designer

    Messages:
    136
    Likes Received:
    341
    Trophy Points:
    74
    mitgobla
    Designer
    PLUS
    Update!
    So I've added NameMC username history if you type in a username that doesn't come up on the website. You can click the names in the list to quickly search again.
    5.PNG
    Also, I've made the whole UI a bit wider to accomidate for long text. Plus, URLs such as evidence are now clickable in the "Reasons" block.
    6.PNG
    Let me know if you've got any more ideas!
    Unfortunately this is quite difficult for now because the website uses POST data to get the username, and I have to create individual sessions per search otherwise you have to "logout" to search a new username - too tedious for me! :p

    Could be possible, but I'm sure the program will be rate limited for the amount of requests I would have to make to go to each leaderboard and search through it.

    I'm planning on adding a third page for "Player information" so it can just get general stats, including their skin.
     
    Chat_Filter and MrGrumpyCheese like this.
  16. EggBoyOrNot

    EggBoyOrNot Member

    Messages:
    218
    Likes Received:
    197
    Trophy Points:
    59
    This is good, you have skills! :eek:
     
    mitgobla likes this.
  17. CrazyAbility

    CrazyAbility Member

    Messages:
    161
    Likes Received:
    325
    Trophy Points:
    79
    CrazyAbility
    Obsidian
    PLUS
    Good job
     
    mitgobla likes this.
  18. Expectational

    Expectational Member

    Messages:
    44
    Likes Received:
    26
    Trophy Points:
    19
    Expectational
    Diamond
    Some cool stuff here.
     
    mitgobla likes this.