Code Monkey home page Code Monkey logo

utilibot's Introduction

Utilibot, Moderation Bot

This is an open-source project for Utilibot, a fully-featured moderation focused bot for your Discord server. This repo is a rewrite of the existing bot, which is currently closed source.

Documentation

Documentation for the current, closed-source version is available here, though a local copy will be made available once this project progresses further.

Contributing

I welcome contributions, but please follow the guidelines.
It is expected that you have an intermediate level of experience with both Node.js and the Discord API in general.

You will need to set up a local instance of the serverConfig, audit, and member tables. Full documentation for that will be coming soon(tm).

Support

For support with the existing bot, or to get more information on the rewrite or its current state of development, join the support server on Discord.

utilibot's People

Contributors

brayzure avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

utilibot's Issues

Adding members to database on startup is horribly and needlessly inefficient

To test initial functionality, the client attempts to add every single member it sees to the database all over again. Initially, the database handled conflicts by ignoring the provided data, which meant that performance was acceptable. However, now that conflicts are resolved by pushing the member's join date to the join_dates array, there is a very real performance hit (close to 3 minutes for 200k+ members), during which time the database is unusable. As soon as feasible, this needs to be resolved. Potentially need to pull all member and guild IDs, then check against that list before we ask the database to insert another row, or update an existing one.

Redo modMutex

Right now, modMutex is just an object in the main file. While filters can alter and consider it, functions can only read it, not alter it. Ideally, we want both functions and filters to be able to access and alter modMutex. We also probably want to change its name to something more fitting, since it's not moderating access to a single resource like the name implies. I don't know what it is, but it's not a mutex.

To-Do

Running list of what needs to be done. Will be edited frequently.

  • Framework
  • Database design
  • Command structure
  • Filter redesign
  • Timed actions infrastructure (db table and handling)

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.