mattata | Technologies

Telegram-канал mattata - mattata's Channel

669

Issues: @mattataDev Creator: @wrxck Source: https://github.com/wrxck/mattata Official Bot: @mattatabot Development Bot: @matticatebot

Subscribe to a channel

mattata's Channel

That's 100,000 more active users than I predicted 😆

Читать полностью…

mattata's Channel

It's like a huge jigsaw. There are people in here with "neighbouring" IDs. There's also some dude who has an insane amount of 9s in his ID.

Читать полностью…

mattata's Channel

It's still going too, I haven't finished sorting users out yet and, well...

Читать полностью…

mattata's Channel

On a positive, this still means mattata has over 200 thousand active users! That's like, a really big number dude

Читать полностью…

mattata's Channel

I'm only saving user information for 2 weeks now. Any users who don't interact with mattata for 2 weeks or longer will be forgotten (however, settings and toggled plugins will remain, this is just information such as their name, username and ID - information which is cached simply to prevent the need to repeatedly call the getChat method)

Читать полностью…

mattata's Channel

User data is being migrated to a JSON structure, in such a way that means all user info for the user with the ID 1234 will be in a file located data/users/1234/info.json. This is really simple for noobs to understand, and it's not kept in the memory, each user is constantly being updated and this info is read when necessary. It's a lot more practical because every time mattata meets a new user, redis uses a slightly bit more memory, and I can't forever upgrade the server. Assuming I don't do anything retarded in the process, no data loss (like your settings for plugins and administration) will occur. In fact, you probably won't even notice the changes have happened.

It's ~2AM here, so I'm now going to run a script that will basically migrate all user/chat data (at the moment this is just things like name, username, ID, etc.) to this new format. This is hopefully just a temporary solution to the memory issue I seem to be facing a lot, and a permanent move to PostgreSQL should happen some time in 2018.

If you URGENTLY require mattata's functionality during the next hour, you have about 5 minutes before she goes offline, so please use a temporary alternative such as Group Butler (if you're using her for administrative purporses) or otouto (if you're just using the nifty things) [do note that there are still many features mattata boasts which, to my knowledge, no other bots other than up-to-date forks of mattata are capable of doing, but none of these are really dependant features]

Читать полностью…

mattata's Channel

Many people have been saying they are unable to donate because of payment restrictions in their country.

I will now happily accept any donations in Bitcoin or Ether!

Bitcoin: 12ipinb7HKXYGUSk8eNeewDuBx1w2vTzFm
Ether: 0xD4e1917Eca52E50A9A30E8400E26104114d0f929

Thanks again!

Читать полностью…

mattata's Channel

Since this date, the number of users in the database has reached over 870,000, growing quicker every day. Number of chats sits at over 58,000!

Читать полностью…

mattata's Channel

Oh also I released telegram-bot-lua v1.8 to add support for latest bot API additions!

Читать полностью…

mattata's Channel

I've already pushed changes which move more misc functions from mattata.lua to libs/utils.lua, and fixes a bug which broke the "delete commands" setting in /administration.

Читать полностью…

mattata's Channel

I'm now finishing off mattata's Christmas makeover, I hope you like it!

Читать полностью…

mattata's Channel

Redis background saving schema relies on the copy-on-write semantic of fork in modern operating systems: Redis forks (creates a child process) that is an exact copy of the parent. The child process dumps the DB on disk and finally exits. In theory the child should use as much memory as the parent being a copy, but actually thanks to the copy-on-write semantic implemented by most modern operating systems the parent and child process will share the common memory pages. A page will be duplicated only when it changes in the child or in the parent. Since in theory all the pages may change while the child process is saving, Linux can't tell in advance how much memory the child will take, so if the overcommit_memory setting is set to zero fork will fail unless there is as much free RAM as required to really duplicate all the parent memory pages, with the result that if you have a Redis dataset of 3 GB and just 2 GB of free memory it will fail.

Setting overcommit_memory to 1 says Linux to relax and perform the fork in a more optimistic allocation fashion, and this is indeed what you want for Redis.
http://redis.io/topics/faq

Читать полностью…

mattata's Channel

A future update will see mattata use PostgreSQL for the main database, and redis for lightweight caching. I'm currently sorting out an up-to-date Lua SQL driver (the LuaSQL project has a lot of compiling issues, it seems to be very outdated, so I might need to write my own in C)

Читать полностью…

mattata's Channel

It seems to all work right now, so I'll work on something, and leave it be in the meantime.

Читать полностью…

mattata's Channel

I'm looking into seeing how well mattata can run without a database!

Читать полностью…

mattata's Channel

Jesus Christ it just passed 300 thousand

Читать полностью…

mattata's Channel

As you can see, that's a lot of directories for a lot of users 😆

Читать полностью…

mattata's Channel

(Active meaning they've made some kind of contact with mattata in the past 2 weeks)

Читать полностью…

mattata's Channel

This means information for about 75% of users that mattata knows, is no longer available, since these are people who mattata has seen in the past year but maybe aren't in groups with mattata anymore, so I don't really want to consider them "users".

Читать полностью…

mattata's Channel

TL;DR database structure update, you won't lose any data so it's nothing serious for you, but in 5 minutes mattata will have some downtime (this could be anywhere up to a few hours, if my estimations are correct)

Читать полностью…

mattata's Channel

A new wrapper for the Telegram bot API: https://github.com/jTelegram/jTelegramBotAPI

This wrapper fully embraces Java 8, and all the glory it has to offer.

They have a support group right here on Telegram! @JTelegramSupport

Читать полностью…

mattata's Channel

In November alone, the database has grown by over 70 thousand users! This is amazing!

Читать полностью…

mattata's Channel

News from an upcoming project, coDesign, which I am part of. Please clap and comment, thanks.

https://artplusmarketing.com/building-a-unified-aggregator-curator-codesign-a95a6cc19cd0

Читать полностью…

mattata's Channel

I have a new PayPal! If you ever want to send me £££, make sure you use PayPal.me/matthesketh

Читать полностью…

mattata's Channel

I'll commit practically every minor change I make to the dev branch from now on, as the changes occur

Читать полностью…

mattata's Channel

For those of you interested in applying this little "memory patch" which solves the issue of MISCONF making Redis stop writes on BGSAVE, feel free to just use echo "vm.overcommit_memory = 1" >> /etc/sysctl.conf && sysctl -p /etc/sysctl.conf (you'll need to use su first, unless you've bumfucked your permissions)

Читать полностью…

mattata's Channel

I've found the ideal solution until an SQL re-write is completed!

Читать полностью…

mattata's Channel

I mean, the only downtime was because of some surprise DigitalOcean maintenance shit on my VPS.

Читать полностью…

mattata's Channel

The answer was not very well! Who knew that you need a database to store things! Believe me, my evening has been like trying to get money out of a vault without having a vault.

Читать полностью…

mattata's Channel

It all works now, I'll look into moving to something like SQL soon.

Читать полностью…
Subscribe to a channel