Code Monkey home page Code Monkey logo

erin's People

Contributors

actualdankcoder avatar dependabot[bot] avatar eieioxyz avatar linusbottips avatar rv178 avatar shinyzenith avatar thurm64 avatar unsignedarduino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

erin's Issues

Cache database calls

Optimizations:

  • The current system is extremely heavy, it makes excessive database calls. we'll need to write a global wrapper for all the database connections. The main goal for this is to deal with the prefix issue, as of now the bot makes a database call for 'every' message sent on discord

Example code:

from utils.prefix import PrefixManager

PrefixManager.getprefix(ctx.message.guild)

Fix grammar in cooldown message

image
Should either fix it to something like You must wait <time> second(s) to use this command again! or properly add and remove the "s".

Refactor.

now that discord.py is back, I'm going to dedicate some time next week to cleaning up the codebase.

More ways of accessing the prefix

Instead of having to do @Erin. prefix we could also have @Erin. prefixes and even just @Erin.. If we try to do something else like @Erin. help then the bot should say something like Please use the available prefixes: <list of prefixes>.We can also have -prefix list them all and also tell the user to specify add or remove to change the list. And maybe have -prefixes do the same as -prefix.

If ya like this idea I can try to implement this via a PR.

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.