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

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.

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

mattata's Channel

At the moment mattata keeps erroring out because nothing can persist on disk.

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

mattata's Channel

Has anybody found the XMAS command yet? It’s a very obvious command too!

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

mattata's Channel

Do you want suspected spammers banned from all chats this bot is in, as an opt-in feature or opt-out on a per-chat basis?

opt-in, I don't want anybody automatically banned just because they're on this list – 80
👍👍👍👍👍👍👍 73%

opt-out, I want everybody who is on this list to be automatically banned – 30
👍👍👍 27%

👥 110 people voted so far.

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

mattata's Channel

The reddit commands are back, and available for you all to use! They're also better too! They don't make mattata lag and/or crash, and if you use /r/random you'll be presented with results from a random subreddit just like you would on the actual site. To search reddit, use /reddit <query>. To view the latest posts (a maximum of 4 will be returned in groups, and 8 in private chat), send /r/subreddit - where subreddit is the subreddit you want to return results for.

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

mattata's Channel

(It's back online by the way!)

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

mattata's Channel

Hey everyone, we've created a noise-free, unbiased community-based publication at @coDesign. Any and every enthusiast is welcomed - join us in our mission to create a centralized geeks' feed.

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

mattata's Channel

Here's what I've done (amongst other things) tonight:

— Due to popular demand, the /channel plugin has returned
— Deprecated /counter, due to the above addition and the fact it's hardly ever used
— Removed the part of /help text which suggests mattata is an AI (since the AI functionality is now @mattataaibot)
— Began cleaning up language files, getting rid of strings from old plugins, and adding new ones in ready to be translated
— Fixed a few minor bugs, including some present with the /slap, /help, /youtube and /define commands

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

mattata's Channel

Thought of the day:

We need an “update.message.via” User object to see what bot was used when inline messages were sent

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

mattata's Channel

For questions related to mattata, please try and refrain from asking Telegram Support - I have @mattataSupport for that. 😅

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

mattata's Channel

Fuck you I'll add a dev branch then

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

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

Okay well I changed stop-writes-on-bgsave-error to no but I have no clue what horrible effects this may have in the long run, maybe nothing will save when the process has stopped, who knows!

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

mattata's Channel

I'm going to erase all user IDs from the database until I find the time to configure redis properly, or move to a better DB.

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

mattata's Channel

There will ho-ho-hopefully be some festive updates coming soon ;)

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

mattata's Channel

For those interested, this is how it currently works (for clarity, we're going to assume this is a guy, so we'll be using the pronoun "him")
• when he gets globally blacklisted, he gets banned from any mattata-administrated groups the next time he speaks or joins one
• after this ban, whether successful or not, a message is sent to explain why the attempt to ban him was made
• his numerical ID (which is static, and won't change unless he makes a new account) is added to a set which will exclude him from future checks, so if the group adds him back (either by adding him manually, or by unbanning him and letting him join), he won't be banned again

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

mattata's Channel

@IPSW_bot is back online!

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

mattata's Channel

mattata will be down for the next 5-10 minutes whilst I sort some installation-related things out.

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

mattata's Channel

Also, /developer is much more streamlined now

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

mattata's Channel

mattata-ai, the AI counterpart to mattata, is now available on GitHub. https://github.com/wrxck/mattata-ai

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

mattata's Channel

— Added a new "Channels" button to /help

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

mattata's Channel

https://github.com/wrxck/mattata/tree/dev

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

mattata's Channel

If you like things that have aesthetic, be sure to check out my other channel @aesthetic_things, I'm posting a lot more there right now and will continue to do so over time!

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