509 Commits

Author SHA1 Message Date
9c3e7c0830 Add setup.py files to make plugins installable
For example:

```
pip3 install "git+https://git.launchpad.net/~krytarik/ubuntu-bots/+git/ubuntu-bots#subdirectory=Bugreporter"
```
2022-12-12 22:31:18 +01:00
f9066b25c0 Encyclopedia: Rename setting 'alert' → 'alerts' 2022-10-13 00:17:04 +02:00
8d2bb1f371 Encyclopedia: Drop private responses off settings.
Since there is nothing really sensitive about them anyway,
and it helps configuring multiple bot instances at once.
2022-10-12 23:56:04 +02:00
f2ea4477c0 Bugtracker: More exactly trim CVE information. 2022-10-11 03:34:04 +02:00
bfa65ed8c3 Encyclopedia, PackageInfo: Add '!more' command.
So unprivileged users can page through multi-message outputs.

Also make PackageInfo stop processing requests twice in case of
privileged users PM'ing the bot with unprefixed commands, and make it
possible to address the bot with prefixed commands for unprivileged use.
2022-10-10 23:56:04 +02:00
cccf339e2e Bugtracker: Add option to send bug information via notice. 2022-10-01 16:45:04 +02:00
4dae298cc2 Bugtracker: Adapt CGit parsing to upstream bot changes. 2022-08-01 23:34:04 +02:00
9a06be1795 Bugtracker: Guard against assignee data being private on Launchpad. 2022-08-01 22:45:04 +02:00
2e3acd7da2 Bugtracker: Use bug prefix to determine certainty and type. 2022-04-19 22:34:04 +02:00
d9bf187e2e PackageInfo: Set default APT directory in update script. 2022-01-16 15:34:04 +01:00
94210cea6b Bugtracker: Try and limit snarfer terms to trackers. 2022-01-10 17:50:04 +01:00
6c755906d7 Random: Various updates and improvements. 2021-12-04 04:04:04 +01:00
2dfd320ddc Add Random plugin (original version) 2021-12-04 04:04:04 +01:00
2c8bc43bf8 Remove old, unported, and unused plugins.
* Bantracker
* IRCLogin
* Lart
* Mess
* Webcal
2021-12-04 04:04:04 +01:00
e9306925c0 Various improvements.
* Encyclopedia, PackageInfo:
  + Make repeat delay a setting.
  + Update default configuration.
* Bugtracker: Fix inconsistencies in network specificity.
2021-12-02 22:13:04 +01:00
df480587c9 PackageInfo: Various improvements.
* Fix encoding issue.
* Specify plugin in command proxy.
2021-11-20 21:17:04 +01:00
39d64b3e74 Encyclopedia: Trim alert relay message. 2021-10-14 17:04:04 +02:00
57cfd73750 Encyclopedia: Improve exempting of commands in private. 2021-09-21 16:23:04 +02:00
f296c53534 Bugtracker: Allow colon and hash as sole delimiters on term snarfing. 2021-09-15 20:23:04 +02:00
148bf183e2 Encyclopedia: Add 'review' command to list edit requests. 2021-07-24 20:34:04 +02:00
2bd46f38ff Encyclopedia: Fix 'otherUser' → 'nick' on commands. 2021-07-23 21:13:04 +02:00
5cc19abfcc PackageInfo: apt-file returns exit code 1 on nothing found now. 2021-06-16 21:04:04 +02:00
e3614f3256 Encyclopedia: Fix regression in web page. 2021-06-14 01:56:04 +02:00
db29965a33 Encyclopedia: Rework message parsing. 2021-06-14 01:56:04 +02:00
902534d10b Encyclopedia: Various improvements on aliases.
* Make 'delete' work on aliases without prior 'unforget' of target.
* Also show forgotten aliases in factoid info.
* Also hide forgotten aliases from web page unless searched.
* Improve handling of alias edits.
* Check for aliases on 'forget' and 'delete'
2021-06-14 01:56:04 +02:00
987b3c91fa PackageInfo: Add 'releases' command to list all valid releases.
* Instead no longer include those in error message on invalid releases.
* But add setting to send list of valid releases in private on error.
* Minor fixes to Encyclopedia along the way.
* Update default configuration.
2021-06-13 00:23:04 +02:00
b4c25ad7e2 Encyclopedia: Minor improvements to config.py 2021-06-12 12:34:04 +02:00
37965b6a9e Update documentation. 2021-06-03 02:34:04 +02:00
91c29a837b Update homepage: freenode → Libera 2021-06-03 00:34:04 +02:00
59625e7756 Add Bugreporter plugin. 2021-06-01 23:04:04 +02:00
95f8fabc59 Encyclopedia: Guard against mistakes. 2021-05-26 03:45:04 +02:00
8ffed09aef Encyclopedia: Various improvements.
* Improve handling of aliases.
* Make 'delete' work without prior 'unforget'
* Fix issue of passing empty commands to bot just to allow
  multi-message output (about to be fixed by pending upstream change)
2021-04-22 21:13:04 +02:00
34203f7b11 Encyclopedia: Update Python shebangs. 2021-01-28 05:04:04 +01:00
b4cde99a4d Encyclopedia: Fix XSS vulnerability (LP: #1832773) 2021-01-28 04:04:04 +01:00
2b012a7075 Bugtracker: Fix regression from previous commit. 2021-01-07 19:34:04 +01:00
5d8e2c4edc Bugtracker: Add 'tickets' type to SourceForge tracker. 2021-01-07 17:34:04 +01:00
3596ab6692 Encyclopedia: Improve previous commit. 2020-12-10 19:23:04 +01:00
34be030c26 Various: Switch from 'imp' module to 'importlib'
* Bugtracker
* Encyclopedia
* PackageInfo
2020-12-10 04:50:04 +01:00
5753ecf12d PackageInfo: Avoid newlines getting in output. 2020-12-03 01:23:04 +01:00
fa6be1af5a PackageInfo: Fix regression from previous commit. 2020-11-10 05:17:04 +01:00
4509317daf PackageInfo: Explicitly trust Ubuntu and Debian keyrings.
The debian-archive-keyring package on Ubuntu doesn't automatically add its
keys to APT's trust keyring, likewise for the Ubuntu package on Debian.
2020-11-10 03:45:04 +01:00
1284f0c157 Encyclopedia: Refactor handling of being addressed. 2020-11-06 05:34:04 +01:00
83434d4373 Update homepage and its assets. 2020-10-28 02:04:04 +01:00
d62334ed7c Bugtracker: Work around PySimpleSOAP still lacking Base64 support. 2020-10-26 01:23:04 +01:00
95c8c5e9f7 Various: Mirror changes to checkIgnored() function.
* Bugtracker
* Encyclopedia
* PackageInfo
2020-10-26 01:23:04 +01:00
ed35f240fd Various: Fix output redirection.
* Encyclopedia
* PackageInfo
2020-10-24 05:04:04 +02:00
9cb39012f8 PackageInfo: Fix error when called in private. 2020-10-24 02:23:04 +02:00
32f2c9ac3f Various: Follow upstream bot development.
Specifically, use msg.channel and make network-aware where easily possible.

* Bugtracker
* Encyclopedia
* PackageInfo
2020-10-23 06:23:04 +02:00
fdbaa3fc36 Encyclopedia: Fix addressing on replies. 2020-10-19 22:04:04 +02:00
18b4fe831a Various: Avoid error when msg.prefix is from services.
* Bugtracker
* Encyclopedia
* PackageInfo
2020-10-19 20:56:04 +02:00