Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-03-26 | teleport: don't teleport within same channel, better text | Arjun Satarkar | |
2024-03-20 | markov: fix bug where append_token could clobber previous token | Arjun Satarkar | |
Specifically if we had an open paren followed by some other punctuation, the open paren would disappear. Probably this didn't exist before the addition of parens as valid tokens. | |||
2024-03-20 | markov: avoid float division in uint_to_bytes | Arjun Satarkar | |
It seems as though the float division could cause an issue where the actual value should be an integer but the float representation is slightly higher than that, causing the addition of an extra unnecessary byte. Although this works fine as long as the same function is used, it could cause problems if seemingly inconsequential details change. I switch to using divmod and checking for the presence of a remainder. This should ensure use of the exact minimum required number of bytes in the blob. | |||
2024-03-19 | markov: support brackets, separate out append_token logic | Arjun Satarkar | |
2024-03-14 | markov: support animated emoji | Arjun Satarkar | |
Also support the old ping syntax with an exclamation mark. I don't think clients use it but it still works and bots can send it, so better to allow it. | |||
2024-03-14 | markov: process semicolons | Arjun Satarkar | |
2024-03-13 | markov: improve exceptions | Arjun Satarkar | |
2024-03-12 | markov: reduce code duplication, add command to nuke guild data | Arjun Satarkar | |
This also fixes bugs related to inconsistent handling of per-member and whole-guild generation. | |||
2024-03-11 | markov: escape markdown in exclusion lists | Arjun Satarkar | |
2024-03-11 | Add skeleton of starboard cog; improve menu handling | Arjun Satarkar | |
We were previously not escaping mentions right in `qotd list` and `qotd suggest`. I think everyone and here could have maybe got through? Not sure about the defaults there. Also improved the handling in Markov where previously we'd been 1. allowing mentions but 2. editing the message from a dummy one so they didn't ping, which I think was out of some idea of preserving the exact text of an exclusion but it seems inelegant. | |||
2024-03-09 | markov: don't add space after forward slash | Arjun Satarkar | |
2024-03-07 | markov: handle threads properly | Arjun Satarkar | |
2024-03-07 | Add ignored_string feature, refactor, improve tokenization | Arjun Satarkar | |
2024-03-07 | markov: normalize message content better | Arjun Satarkar | |
We now do NFKC normalization and replace U+2019 with the normal ASCII single quote. | |||
2024-03-07 | markov: tokenize custom emoji as one token | Arjun Satarkar | |
2024-03-06 | markov: small logic improvement in unlikely case | Arjun Satarkar | |
2024-03-06 | markov: switch from reply to send | Arjun Satarkar | |
This is useful for certain purposes | |||
2024-03-06 | markov: remove ignore_string, add blacklist_string | Arjun Satarkar | |
2024-03-06 | markov: ignore non-guild messages | Arjun Satarkar | |
2024-03-06 | markov: improve ignore_string list formatting | Arjun Satarkar | |
2024-03-06 | markov: add ignored_string commands | Arjun Satarkar | |
2024-03-06 | markov: don't force to be lowercase | Arjun Satarkar | |
2024-03-06 | markov: check enabled/opted-in status in generate | Arjun Satarkar | |
2024-03-06 | Add markov cog | Arjun Satarkar | |