Code Monkey home page Code Monkey logo

erin-solstice-bot's People

Contributors

axelterizaki avatar lpu8er avatar

Watchers

 avatar

erin-solstice-bot's Issues

Check constraints on DB

Thanks to typeORM who did that for us (see #2) we'll have to check that foreign key constraints are okay in some tables. I've seen some strange things like a ON DELETE NO ACTION for when you remove an item or user from the db in the inventory for example. A CASCADE should be here.

Switch to slash commands

As Discord is making a push for this, we need to update Discord.js to the latest version and completely rewrite the commands system.

Implements automatic reconnection on error

When cloudflare or any fundamental stack of discord is down, bot will just rack up errors in log, and nothing'll happen.

By experience, it's better to try to reconnect once we receive an error; discord and cloudlare tends to be vbery SILENT when they're dead and very vocal to say "hey, you're offline, xoxo" when it's back.

A way for that is to store the heartbeat response time, and if that one goes too high, to reconnect, in client.on('error'

Note : we might not have that issue 'til a long time.

Remove TypeORM

We're going to write SQL queries ourselves, they're pretty simple so it should be fine.

We have to rewrite what automatically creates SQLite databases upon joining a new server to make it work like in TypeoRM.

I haven't looked at Prisma event hoguh it seems to be the latest flavor in ORMs, I'm pretty much done with them now.

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.