Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

BulletBot v1.2.11 (Re-release #2)

Compare
Choose a tag to compare
@StrangeRanger StrangeRanger released this 15 Apr 01:08
· 93 commits to release since this release
fc76811

Summary

This update comes with several bug fixes as well as a massive addition and some changes to the installers.

Updating to v1.2.11

In this update, there are a few files that can be removed, due to them being renamed and such. To make the process easy for you, I've written the code below to take care of that. Before updating to the new release, place the code below into a file named pre-update.sh and then execute that script with sudo privilege. You can do this after already updating to the new release, but it is recommended to do it before, just to reduce the possibility of running into errors.

#!/bin/bash

me=$(basename "$0")

cd "$(dirname "$0")"
echo "Stopping services bulletbot.service and bullet-mongo-start.service..."
systemctl stop bulletbot
systemctl stop bullet-monogo-start
echo "Removing directory 'autorestart'..."
rm -r /home/bulletbot/installers/Linux_Universal/autorestart
echo "Removing file 'run-in-background-autorestart.sh'..."
rm /home/bulletbot/installers/Linux_Universal/bb-start-modes/run-in-background-autorestart.sh
echo "Removing 'bullet-mongo-start.sh'..."
rm /home/bulletbot/bullet-mongo-start.sh
echo "Removing services bulletbot.service and bullet-mongo-start.service..."
rm /lib/systemd/system/bulletbot.service
rm /lib/systemd/system/bullet-mongo-start.service
echo "Reloading systemd daemons..."
systemctl daemon-reload
echo "Removing 'casedelete.js'..."
rm /home/bulletbot/out/commands/Moderation/casedelete.js
rm "$me" # This automatically deletes the script, that way you don't forget to do it yourself
echo "Done"

After running the code above, you can use the master installer to download the new version of BulletBot. Though due to an annoying update foresight, after running the update option once, you will have to exit then re-execute the master installer. The foresight prevents any changes to the master installer from being loaded into memory along with the rest of the installers, right after updating/downloading the newest release. This has been fixed in the new version.

Bug Fixes

BulletBot Bug Fixes:

  • An issue preventing the ability to ban users who have already left the server has been fixed. (#75)
  • Having BulletBot message itself (such as when you ?!warn the bot) would cause an error. (#59)
  • Fixed the bug making it impossible to use case list with a userID. (#59)

Installer Bug Fixes:

  • Small bug fixes, but nothing too major

Changes

BulletBot Changes:

  • casedelete has been merged with case, which means that cases can now be deleted using ?!case delete [case #]. (#59)

Installer Changes:

  • The installers now provide the option to stop BulletBot. (#34)
  • When setting up BulletBot's config file, the callback.URL inside of bot-config.json, automatically gets filled in with the system's IP Address. (#53)
  • BulletBot's auto-restart run mode now has the ability to send a status report on BulletBot's startup, via postfix. (#35)

All of the installer changes listed below are from (#62)

  • All the services used by/for BulletBot now log events to /var/log/syslog and have syslog identifies:
  • Syslog Identifiers:
    • bullet-mongo-start.service: bullet-mongo-start
    • bulletbot.service: bulletbot
  • bulletbot.service is created after the master installer is executed, instead of waiting until a run mode is chosen.
  • bullet-mongo-start.service is created when BulletBot is downloaded to your system or when the run mode that requires it is run.
  • When switching from one run mode to another, the service and bash files (bullet-mongo-start.servce and bullet-mongo-start.sh) are not removed. Instead, bullet-mongo-start.sh stays in its original location (/home/bulletbot/installers/Linux_Universal/auto-restart/bullet-mongo-start.sh) and bullet-mongo-start.service is either enabled or disabled.
  • When the installers display bulletbot.service's startup logs, instead of only displaying the last 40-60 lines of logged events, all events for that specific startup period are displayed.
  • bullet-mongo-start.sh no longer attempts to start mongod.service or bulletbot.service more than once
  • Renamed a few files and directories.
  • Completely revamped the coding/commenting style.