spergmoment / FederalBot

A bot that was specifically made for my server, "United Discord Democracy", or U.D.D for short. It's a democratic server, with the people put first. This bot is the basis for the entire system.
GNU General Public License v3.0
0 stars 0 forks source link

Rework of the bot--and some other info #33

Open spergmoment opened 4 years ago

spergmoment commented 4 years ago

I have a LOT to cover here, so let's get straight into it.

I am currently planning an absolutely huge rework of the bot. This will pretty much change the whole fundamentals of the bot. Don't worry--it'll do everything the same way, just much better, with some added features on as well!

You may have noticed a drop in commits recently, and that's because I've been testing out some Sequelize stuff to make it PERFECT.

This rework will pretty much fix every single problem the bot has and more. I will be adding so many features to it. So, let's see whats changed!

EVENTS

This is one of the smaller parts but is still big nonetheless. SO, here goes:

MONEY SYSTEM

Despite how big it sounds, this is only a small part of the update as well.

COMMAND FIXES

Some general command fixes. Nothing specific here.

PROMISES

Look at any of the commands. Notice all the .then() callbacks.

v12 CONFORMING

Oh boy, this is the BIGGEST part of the update yet.

GENERAL MODERNIZATION

The code will just be generally "modernized" to better fit ES8. This goes with Promises, v12 conforming, and the money system.

REFORMATTING

I will go through every nook and cranny and make sure EVERYTHING is formatted PERFECTLY!

This is by far my most ambitious project yet. Development on this gargantuan update starts in 2 days. Until then, I will be preparing, both myself and the bot. I will also look for a better host.

Thank you for reading!

TL;DR: I will generally be reformatting, modernizing, and fixing almost the entirety of the bot, and add some new features too!

spergmoment commented 4 years ago

finished promise callback stuff

spergmoment commented 4 years ago

UPDATE 1: Suprisingly, v12 conforming went pretty well! All works great. Anyway, changed up a few things so here goes:

This is actually really fun to do. I don't know why.

Anyway, I'll be pushing aside events for a while.

spergmoment commented 4 years ago

Clarification on eval:

I will also be reworking this command, and for it to work the way I need, I can not use string literals. I simply will have to deal with them for now. Luckily, since eval is part of the base API and not in any way related to Discord, I am able to keep it like this.

spergmoment commented 4 years ago

UPDATE 2:

This one is a bit smaller. However, it's still relatively big. So, here goes:

NEW FEATURES

I'll be ironing out many of the issues you see here.

Additionally, I'll be looking into loggerv3 and getting some ideas from there for events. Soon

spergmoment commented 4 years ago

UPDATE 3

No real changes here, just some fixes.

FIXED

Next update will be better, I promise.

spergmoment commented 4 years ago

Next update is command reworks, which has already proved to be incredibly hard to do.

spergmoment commented 4 years ago

I'll be postponing this for a little bit. I currently have a ton of other projects to do.

Estimated time of return is in 1-3 days.

spergmoment commented 4 years ago

Also, earlier, I implemented a fix for wrong audit logs. It simply doesn't log it if it happened a while ago (i.e. it didn't properly fetch the audit log), which as of now I've set to 30 seconds. This is subject to change.

spergmoment commented 4 years ago

ive added a (very experimental) channel update thing

ill be pushing the actual code in a little while

spergmoment commented 4 years ago

federalbot is done ig

spergmoment commented 4 years ago

nvm