gist/irc/limnoria/molly-guard-announce.md

30 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2024-06-19 07:53:27 +02:00
<!-- @format -->
2023-03-16 18:53:28 +01:00
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [Preventing accidental owner announces](#preventing-accidental-owner-announces)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
# Preventing accidental owner announces
By default `announce` command sends a message to every channel the bot is on
2024-06-19 07:53:27 +02:00
prefixed by `Announcement from my owner (username):` and this may be easy to
trigger by accident when not specifying the plugin such as `GitHub` or `RSS`.
However this is easy to avoid with a couple of plugins
1. `/query botname`
1. `load Aka`
1. `load <Reply|Utilities>` meaning to load either Reply or Utilities
1. `aka add announce "<reply reply|utilities echo> You didn't mean for me to send that message everywhere, so I am hijacking it instead"`
2023-02-26 18:01:13 +01:00
2024-06-19 07:53:27 +02:00
- here again one is picked, "utilities echo" will just repeat the message on
channel while "reply reply" will ping you. The name of the plugin is
2023-02-26 18:01:13 +01:00
specified in case the command "echo" or "reply" was in multiple plugins.
1. `defaultplugin announce aka` so that when `announce` is called, it's
2023-02-26 18:01:13 +01:00
assumed that our new `aka` is meant instead of Owner which is an important
plugin and loaded by default.