Giter VIP home page Giter VIP logo

operation-politibot's People

Contributors

jaredlyon avatar raylou15 avatar

Stargazers

 avatar

Watchers

 avatar

operation-politibot's Issues

Backend - Deprecate VerifyBot

Deprecate VerifyBot

  • Migrate all functions from VerifyBot into Politibot
  • Translate the MongoDB functionality to RethinkDB

Backend - Add button managers for #roles

Add a button manager for self-assignable roles

  • Requires a constant listening event on multiple permanent buttons
  • Assigns roles when a user clicks them
  • Unassigns them if the user already has them
  • Must verify functionality with parallel guildMemberUpdate.js event

Backend - Update repMod.js

Redesign the entire repMod.js command from the ground up to instead be used as:

/setrep {target} {upvotes | downvotes | reset} {input}
  • The input field is not required for the reset subcommand
  • Should allow moderators to set the upvote and downvote fields of a user's data

Backend - Add unmute command

Add an /unmute command

  • unmute.js
  • Just needs to delete a timeout and send a log to the log channel
  • Need an endpoint catch for users that arent muted

Moderation actions confuse mention inputs

This issue arises from the fact all moderation commands can take user IDs or mentions; because of this, mentions within a command reason argument may get picked up as the target mistakenly. It's an interesting edgecase, but the changes needed to fix it are probably not worth undertaking at the moment.
Screen Shot 2022-03-23 at 7 19 53 PM

Frontend/Backend - Improve overall documentation

Review and reformat all code for legibility

  • Must stylecheck all code
  • Must include templates in all code

Add help documentation

  • add /modhelp for mod commands
  • add /help for general commands -> possibly split into subcommands

Backend - Add stage queue

Add stage queue module

  • ! to join queue
  • /next to advance queue
  • /clear to clear queue

If Discord.js allows for bot stage management...

  • Allow above commands to move members in/out of the stage
  • /populate to bring entire queue up
  • /add to add the next member without moving the last
  • /clear to clear the stage

request.js database update requires await command outside of function

In order to carry out the bank transfer, request.js needs to update the database using the asynchronous code:

await bot.bank.update(account);
await bot.bank.update(donor);

However, loading bot.js throws a syntax error:

3|OpBot  | [15:15:15]  [LOG]  | Unable to load command request.js: SyntaxError: await is only valid in async functions and the top level bodies of module

So far have been unable to move the update request in or around the statements; any insight or fixes would be appreciated.

Frontend - Redesign #roles

Completely overhaul the way through which user self-assign roles

  • Rewrite instructions in #roles
  • Update available roles, possibly delete extras

messageUpdate.js logs embed updates

image
The issue is caused by the messageUpdate event being triggered when a link auto-updates in chat to show an embed preview. Possible solution includes adding a timed buffer or checking for content inequality.

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.