Heroes Association • Saitama Updates
1.17K subscribers
34 photos
2 videos
3 files
38 links
The updates channel for @SaitamaRobot

Visit @OnePunchSupport for help

Powered by @Kaizoku
Download Telegram
Now someone added this one.
UD wars!
🔄 Updating edd1143..1acd0e6
{workflows => disabled}/docker_disabled.yml|   0
{workflows => disabled}/main.yml | 0
README.md | 10 +-
/__init__.py | 30 +++--
/__main__.py | 27 ++++-
/admin.py | 95 +++++++++------
/afk.py | 6 +-
/anime.py | 4 +-
/antiflood.py | 15 ++-
/bans.py | 42 +++----
/blacklist.py | 16 +--
/blacklist_stickers.py | 17 +--
/blacklistusers.py | 27 ++---
/chatbot.py | 16 ++-
/cleaner.py | 2 +-
/connection.py | 12 +-
/cust_filters.py | 111 +++++++++++++-----
/debug.py | 20 ++++
/disasters.py | 130 +++++++++++----------
/feds.py | 62 +++++-----
/global_bans.py | 48 ++++----
/helper_funcs/chat_status.py | 30 +++--
/helper_funcs/extraction.py | 12 +-
/helper_funcs/filters.py | 8 +-
/helper_funcs/handlers.py | 9 +-
/helper_funcs/telethn/__init__.py | 9 +-
/helper_funcs/telethn/chatstatus.py | 11 +-
/locks.py | 4 +-
/log.py | 25 ----
/muting.py | 6 +-
/notes.py | 66 ++++++++++-
/reporting.py | 7 +-
/sql/welcome_sql.py | 40 +++----
/stickers.py | 14 ++-
/userinfo.py | 47 +++++---
/users.py | 6 +-
/warns.py | 6 +-
/welcome.py | 27 ++---
/sample_config.py | 8 +-
app.json | 18 ++-
requirements.txt | 2 +-
41 files changed, 611 insertions(+), 434 deletions(-)
+
Updating 1acd0e6..d3c9226
/stickers.py | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)

Restarting SaitamaRobot with new changes .....
New features:
● Added /clearallnotes and improved /clearallfilters
● Improved /admins /adminslist command

Important changes:
● Changes to Config vars
╭────────────────────────╮
│SUDO_USERS -˃DRAGONS│
│SUPPORT_USERS -˃DEMONS │
│TIGER_USERS -˃TIGERS │
│WHITELIST_USERS-˃WOLVES │
╰────────────────────────╯
If you are pulling this update for your bot then make sure you update your config vars accordingly.
● AFK wont work if you are anon
● gbans, fbans wont work for anon mode

Bug fixes and stuff:
• No webpage preview for /bio /me
• Added deeplink for /help modulename
• Minor improvements to heroku deploys
• Reduced messages on fbans
• fbans dont affect health
• Added help for health in user info
• Welcome help section improved
• Fixed bad permission for wolves
• Anon and telegram can use ban
• Linked channel wont trigger filters
• /logs command now uses Support_chat var
• /logs function moved to debug.py
• Minor updates to help and stuff
• Fixed bugs that we added due to bad coding
• Fixed spamwatch errors due to wrong var
• Added more bugs to fix later

Pull request #260
Pull request #263
👍1
How about a competition for which group has best welcome message?

Winner gets their group listed on Saitama's bio until the end of 2020. We vote to see which group has the best welcome message on Saitama and OnePunchSupport will provide necessary help.
Final Results
67%
Yes, let's have a competition
10%
No
23%
I could care less
Okay, will think of a way of doing the competition and post an update.
🤖 Beep Boop, Boop Beep!

Important stuff

• Command handler changes
Some commands have been changed so make sure you know those
/settitle is now /title
/adminslist
has been removed, just use /admins

For bot devs
/chatlist is renamed to /groups, see disasters help for more

• Major overhaul to /admins command
/admins now lists your titles and groups same title holders together
Also lists bots and admins with no titles

Admins list does not tag the admins anymore, feel free to use without disturbance.
This was added a while back but missed out writing about it.

Bug fixes
• Fixed bad formatting of translator help
• Fixed /del and /purge not working for anon admins
• Added more bugs to fix later

Pull request #267
🤖 Beep Boop, Boop Beep!
• Sed/regex modules are now permanently unloaded
We are facing some downtime on Saitama.
Looking into this rn
Edit: Identified a process over abusing ram - killed process.
Restarting server to freshen things up

Edit: Seems to be up now.
Those who downvoted - yall gay so do what you want.
Looks like Saitama would be slow today, the same server is a little too busy doing other more critical tasks.
Edit: This is outdated now.
Faced minor downtime as the postgres service crashed, its back up and Saitama has been kickstarted.
In case Saitama becomes non responsive, do reach out to us on support.
Current stats:
---------
OS: Windows Server 2019 Datacenter x86_64
Host: MSI MS-7823
Kernel: 10.0.17763
Uptime: 8 hours, 41 mins
Packages: 4 (scoop)
Shell: bash 4.4.23
CPU: Intel Xeon E3-1246 v3 (8) @ 3.500GHz
Memory: 12856MiB / 32630MiB

3453 blacklist triggers, across 487 chats.
401 blacklist stickers, across 83 chats.
15055 filters, across 1545 chats.
1560 disabled items, across 407 chats.
21260 banned users across 231 Federations
443 gbanned users.
107 log channels set.
7077 notes, across 1142 chats.
708 chats have rules set.
802437 users, across 9871 chats
10008 overall warns, across 1086 chats.
341 warn filters, across 108 chats.

We reached 10k+ groups 🎉
Thanks for the Spam uwu
👍1
Saitama is rather slow today, will see in the morning - busy with life.
🕷With great power comes great responsibility.

With a large number of chats and a very unoptimized bot comes delays and slowdowns.
Haruka Aya, Emilia bot are twice the size of Saitama and are facing very unstable times.

I am thinking of disabling groups from Saitama.
This would mean that new groups cannot add Saitama and existing groups would continue to function.
Its just a thought, the bot loses its point if its slow.

There are other ways too, ofc.
One would be to improve the bot to be more efficient, so if there is anyone reading this who knows they way around python, mongo, or postgres or If you have the time to help improve the code then do reach out to us at @OnePunchSupport

If you have more bigger idea in head and want them to be listened to then just reach out to me @Sawada.
We have temporarily disabled groups for Saitama.
New groups will not be able to add the bot.

Reason is posted above.
We recommend using the better bot @AllMightRobot

Oh hell no, its not better, I say use Saitama itself.
Thanks to the continued effort of kangers who keep source closed(before you say even Saitama is closed source, Saitama Dev's aren't going door to door annoying others with queries) and still have the audacity to ask for help we have decided to close down community support for forks.

This means if you deploy your own Saitama and have a technical issue, do not come to us asking help.

Your bot, your fork, your problem.

Thank you for providing a cancerous open source community and an exhausting experience.
Spamwatch is having some issues and looks like this caused a process crash, I have disabled spamwatch on Saitama and we will try to handle this problem in next update.
Meanwhile, No spamwatch for some time until they services are back up.
🤖 Like Darth Vader, only prettier!

[] Added
/admincache/admincache
• Saitama caches the admin status of a user, means when you do promote/demote it isnt reflected instantly (this saves queries), so when you want this to update on demand you can use /admincache to force a cache thrash. (this also auto thrashes in 10 minutes)

[] Added rate limiting to notes, filters
• Yay, yet another fuck you to those who were non stop spamming filter replies and causing flood waits.

[] Fixed a frontend issue in welcome security
• A tmute/muted user could just leave group > join > click on"I'm a human" verification and then get unmuted, bot now stores soft and strong mutes statuses in db. So once you pass verification once in a group it wont show it again.

[] Introducing random filters(Yes, copied this update text from Rose)
• You can have our baldie pick a reply to a word at random! Simply separate the two contents by %%%, on a newline.
Example:
/filter 'awoo'
Dont awoo 100$ Penalty!
%%%
Dont awoo 10$ Penalty!
%%%
Awoo all you want.

[] Wake up message
• When bot restarts/starts it would send a message saying its up to Support chat.

👁‍🗨 Some more notable stuff
• Shout & weebify merged into fun.py
• chatlist is now groups_list
• Improved admin list
• Shifted markdown to html in some files
• Requirements.txt have static telethon version
• Fixed blacklist sticker tmutes (they were perma muting)
• Fixed "brb" case sensitive issue in afk
• Renamed "Welcome/Goodbyes" in help list to "Greetings"
• Fixed reporting and greeting in /settings
• Lil bit of bug fixes here and there
• Made some edits to the readme cause people are a dick
• Added more bugs to fix later

Pull request #296
OOPSIE WOOPSIE!! UwU We make a fucky wucky!! A wittle fucko boingo! 
The code monkeys at our headquarters are working VEWY HAWD to fix this!

Anyway, added some more stuff
• Save a note with multiple replies
separate by %%% to get random responses.
• Fixed some bugs with filters random replies
• Added help examples for notes and filters
• Fixed a bug with purge
• Fix keyerr while migrating chat filters
Reported bug with filters not getting added, will look into this.
So..in short..

OOPSIE WOOPSIE!! UwU We make a fucky wucky!! A wittle fucko boingo!
The code monkeys at our headquarters are working VEWY HAWD to fix this!