17

On https://chat.stackoverflow.com/ and https://chat.stackexchange.com/, chat rooms will freeze after some two weeks of inactivity. While this is fine and , some rooms are worth keeping around for a longer time for various reasons; for example, some communities have rooms which are useful for infrastructure, but which don't typically, or often, receive actual messages from live humans. You don't want those to be frozen.

A common workaround is to (try to remember to) manually write something in the room from time to time, but this is obviously tedious and error-prone.

Enter Sloshy the Thawman, a simple bot which logs in once per night (by way of a dead simple Github Action) and checks a list of rooms for activity, and writes something in those which are close to the freezing point.

Sloshy's activity is logged in his own chatroom, with any thawing messages also logged in the SOBotics room, here is a recent sample:

Screen shot from SObotics July 1st 02:17 AM

This bot is a simple Python script, currently operated by tripleee1; for details, please refer to the bot's Github project page.

The bot does not particularly need the StackExchange API for anything, and so this post is merely an FYI and/or publicity stunt. (Technically, it just fetches the static chat transcript for the latest day for each room using requests and parses it with BeautifulSoup like any run of the mill Python scraper.)

Sloshy does not support secret rooms, for semi-obvious reasons. A closed-source configuration file could perhaps be deployed if there is a real need, but it's really not clear how that could be maintained without a separate project and then perhaps a separate bot identity.


1 In the spirit of providing this service as infrastructure, they will be happy to make you a co-owner if you can convince them that you are interested in co-ownership out of care for the sites in the network.

Being able to debug Python code is an obvious plus; the bot itself is simple, and mainly relies on the ChatExchange Python library, but there will probably be times when it helps if you can understand what it's doing.

8
  • 6
    Adding a comment here so you can ping me. Probably ping me, rather than the bot, if you have comments or questions. Thanks to @rene for guiding me in setting up this post.
    – tripleee
    Commented Jul 2, 2021 at 14:17
  • @tripleee You could follow the post so you get pinged for answers too...
    – Anonymous
    Commented Jul 11, 2021 at 23:20
  • 7
    @Anonymous As a matter of fact I have, but that doesn't make me pingable if someone wants to address me in a comment, so I left a comment too.
    – tripleee
    Commented Jul 12, 2021 at 6:42
  • The SOBotics room is in read mode for the duration of the moderation strike, so Sloshy is running in his own room for the time being.
    – tripleee
    Commented Jun 5, 2023 at 6:01
  • 1
    @tripleee how to setup this bot for my room? Commented Jun 25, 2023 at 17:32
  • @PetLinux Simply create a PR in accordance with the instructions in the main README on Github.
    – tripleee
    Commented Jun 25, 2023 at 19:52
  • See also now chat.stackexchange.com/transcript/message/63857339#63857339
    – tripleee
    Commented Jun 29, 2023 at 7:56
  • Competing offer: stackapps.com/questions/10422/…
    – tripleee
    Commented Feb 9 at 7:06

0

You must log in to answer this question.

Browse other questions tagged .