H3xadecimal / Notus

The corpse of a mistake we're desperately trying to fix for years. Unfortunately unable to transmute into something better as learnt from the Elric brothers.
3 stars 2 forks source link

Complete overhaul. #33

Open H3xadecimal opened 6 years ago

H3xadecimal commented 6 years ago
  1. Nuke redis, too much of a pain to setup and manage. Currently looking into TinyDB and SQLite

  2. Refactor everything to match database changes

  3. Refactor everything broken to make them not broken and fix everything so we have a base bot.

Ovyerus commented 6 years ago

Also rewrite to curious which is a Discord lib using curio which is apparently better than asyncio. also might get people off my back for essentially copying ext when theres no need to

H3xadecimal commented 5 years ago

Update; after a fucking year+ later;

Ovyerus commented 5 years ago

New database (LevelDB) added in e8612da1 through 180e185. Stuff not ported to it yet.

Ovyerus commented 5 years ago

Fully replaced Redis with LevelDB in c622605

H3xadecimal commented 5 years ago

Awaiting testing; that's on me when i can be arsed to setup a linux env so as not to massively fuckup my windows one trying to get levelDB to work.

H3xadecimal commented 5 years ago

Tested; main bot works with a small depreciation error amethyst.py:34: DeprecationWarning: The object should be created from async function self.session = aiohttp.ClientSession() Commands are unresponsive, perhaps because we didn't hook up a core.

H3xadecimal commented 5 years ago

Tested; main bot works with a small depreciation error amethyst.py:34: DeprecationWarning: The object should be created from async function self.session = aiohttp.ClientSession() Commands are unresponsive, perhaps because we didn't hook up a core.

Update; on second attempt at running more issues rose root@08526a482cdc:/srv/Amethyst# python amethyst.py amethyst.py:34: DeprecationWarning: The object should be created from async function self.session = aiohttp.ClientSession() Traceback (most recent call last): File "amethyst.py", line 90, in <module> amethyst = Amethyst(config) File "amethyst.py", line 43, in __init__ self.db['settings']['blacklist'] = [] File "/srv/Amethyst/utils/database.py", line 105, in __setitem__ super().__setitem__(key, value) File "/usr/local/lib/python3.7/collections/__init__.py", line 1085, in __setitem__ def __setitem__(self, i, item): self.data[i] = item TypeError: list indices must be integers or slices, not str Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7f1b77d64d68> Note that previous instance crashed with no warning.

H3xadecimal commented 5 years ago
Ovyerus commented 5 years ago

Database error fixed in 7e00bfc and 555d812

H3xadecimal commented 5 years ago

Added a one more stuff into the list.

Ovyerus commented 5 years ago

In terms of LevelDB on windows, wbolster/plyvel#98 exists, but is still unmerged. Not sure how we'd do it ourselves unless we provided a separate script for doing the complicated shit for building it. Python gets pre/post install scripts when

H3xadecimal commented 4 years ago

Updated goals.

Ovyerus commented 4 years ago

Probably don't need to bother about a leveldb/plyvel Windows installer due to WSL existing, and it's dead simple to get shit setup there.

H3xadecimal commented 4 years ago

When the fuck are we gonna debug this and make it work, it's been pending for 3 years.

Ovyerus commented 4 years ago

soon tm