Page MenuHomePhabricator

Archive/delete tool morebots
Closed, ResolvedPublic

Description

AFAIUI, morebots has been completely replaced by Stashbot now and is no longer needed (please confirm). The easiest way to archive it would be to tar the whole directory, but:

tools.morebots@tools-bastion-03:~$ du -hs *
40K     cache
72K     confs
4,0K    IRCNOTIFIER_KEY
4,0K    labs.sh
4,0K    logs
4,0K    production.sh
4,0K    public_html
4,0K    qa-morebots.sh
4,0K    README
4,0K    replica.my.cnf
1,1M    src
4,0K    STASHBOT-DOES-THE-WORK-NOW
212K    test-adminbot
4,0K    test.py
19M     venv
tools.morebots@tools-bastion-03:~$

shows that the majority of the space is occupied by a venv and the source that is already archived in Git, so if the configuration files are no longer deemed important, I think just deleting the directory would work as well.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
bd808 subscribed.

The configuration might be of minor historical interest with secrets removed. There are at least the cute custom messages for several users in there.

The configuration might be of minor historical interest with secrets removed. There are at least the cute custom messages for several users in there.

Can we migrate those to stashbot?

Can we migrate those to stashbot?

Can we, sure. Should we, meh.

# Map irc nick to title of the user (how the bot addresses the user)
title_map = {
  "Andrew": "junior",
  "RoanKattouw": "Mr. Obvious",
  "RobH": "RobH",
  "notpeter": "notpeter",
  "domas": "o lord of the trolls, my master, my love. I can't live with out you; oh please log to me some more!",
  "LeslieCarr": "Mistress of the network gear.",
  "Alex": "Alex"
}
if author in self.config.title_map:
     title = self.config.title_map[author]
 else:
     title = "Master"
 try:
     self.connection.privmsg(event.target(),
         "Logged the message at {url}, {author}".format(
             url=pageurl, author=title
         )
     )
 except irclib.ServerNotConnectedError, e:
     logging.debug("Server connection error"
             " when sending message: %r" % e)
bd808 lowered the priority of this task from Medium to Lowest.Mar 20 2018, 5:29 AM

Mentioned in SAL (#wikimedia-cloud) [2021-12-23T19:35:25Z] <bd808> Marked tool morebots for deletion (T157399)

bd808 changed the task status from Open to In Progress.Dec 23 2021, 7:35 PM
bd808 claimed this task.