aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py (unfollow)
Commit message (Collapse)AuthorLines
2022-11-02Possible race condition avoidedGravatar Xithrius-2/+2
2022-10-27Corrected indentationGravatar Xithrius-19/+20
2022-10-27Fixed button not doing anything for other usersGravatar Xithrius-45/+37
2022-08-30Fix broken linesGravatar Diabolical5777-7/+5
2022-08-30Use buttons for bookmark commandGravatar Diabolical5777-3/+2
2022-08-30Use buttons for bookmark commandGravatar Diabolical5777-54/+77
2022-08-28Add 1<<15 to the raw intents valueGravatar Chris Lovering-0/+3
1<<15 is the flag for message content intent, so adding this value to the intents value hard codes that to always be enabled. Doing it this way also bypasses the need to patch the flags themselvse in discord.py. This is required until https://github.com/python-discord/sir-lancebot/pull/1092 is merged.
2022-08-19Require dm delete command be invoceed by replying to a lance messageGravatar Chris Lovering-8/+5
2022-08-19Update bookmark error handlingGravatar Chris Lovering-2/+1
This moves sending the error response to within the except block, making it easier to parse what the code is doing.
2022-08-19Allow help in DMsGravatar Chris Lovering-0/+2
Since there are some comands that work in DMs, we should allow the command to be ran there.
2022-08-19Don't output command name twice in help commandGravatar Chris Lovering-1/+0
2022-08-19Update help command to work with root_aliasesGravatar Chris Lovering-1/+3
Specifying root_aliases causes bookmark delete to be registered as a command rather than subcommand, which causes it to be listed even though subcommands usually aren't, and this isn't done correctly. Co-authored-by: wookie184 <[email protected]>
2022-08-19fixup: Improved docstring and error message in bookmark commandGravatar Chris Lovering-2/+2
2022-08-19Fix unbm DM only logicGravatar Chris Lovering-7/+11
The DM only check was interfering with our global check against DM messages. This commit also makes the docstring a little more explanatory, as this is what the user sees when running the help command.
2022-08-19Improve the docstring for the action_bookmark functionGravatar Chris Lovering-1/+5
2022-08-19Add command to delete bot messages in DMs with sir-lancebotGravatar Chris Lovering-1/+26
2022-08-19Remove need for additional abstraction in bookmark commandGravatar Chris Lovering-24/+15
2022-08-19Simplify bookmark error embed helperGravatar Chris Lovering-15/+12
2022-08-19Simplify when a message can not be found when bookmarkingGravatar Chris Lovering-11/+17
2022-08-18Help command fix, normalize suggestions for unknown commands (#1064)Gravatar Rohan Reddy Alleti-33/+61
Co-authored-by: Xithrius <[email protected]>
2022-08-18add more packages to .latexGravatar Shakya Majumdar-1/+8
2022-08-09Add error handling to get_discord_messageGravatar AbooMinister25-1/+5
2022-08-08Refactored get_discord_message to not unnecessarily log, and cleaned up ↵Gravatar AbooMinister25-23/+11
uwu_command
2022-08-08Refactored methods _get_discord_message, _get_text_and_embed, and ↵Gravatar AbooMinister25-75/+83
_convert_embed into bot/utils/messages.py
2022-08-08Add a check for whether an embed is already available via the embeds list, ↵Gravatar AbooMinister25-9/+10
and to use that
2022-08-08Fixed conflicts from PR 1078Gravatar AbooMinister25-1/+5
2022-08-04Enable LaTeX command in ds&a channelGravatar Anton Älgmyr-0/+2
2022-07-28GitHub issues embeds: preserve order and display repo name and issue number ↵Gravatar Bradley Reynolds-2/+4
(#1077) Co-authored-by: Numerlor <[email protected]>
2022-07-27Add jokes command (#1081)Gravatar Diabolical5777-4/+24
Add jokes command
2022-07-20Updated docstring for _ext_emoji_replaceGravatar Ionite-1/+1
Co-authored-by: ChrisJL <[email protected]>
2022-07-20Improved REGEX Emoji matchGravatar Ionite-1/+1
Co-authored-by: ChrisJL <[email protected]>
2022-07-17Ran lints :pGravatar AbooMinister25-4/+4
2022-07-14Fix incorrect type hints (#1073)Gravatar Bradley Reynolds-3/+6
2022-07-14Improved numerical matching safetyGravatar ionite34-2/+2
- Added ASCII flag to match pattern - Changed `isdigit` check to `isdecimal`
2022-07-14Updated usage of REGEX_EMOJIGravatar ionite34-1/+1
Updated usage for new naming
2022-07-14Normalized REGEX_EMOJI namingGravatar ionite34-1/+1
Updated pattern to follow similar naming convention of `REGEX_*` instead of `RE_*` as rest of file.
2022-07-13Fix issue with .uwu failing to uwuify embeds in repliesGravatar AbooMinister25-6/+18
2022-07-12Updated docstringsGravatar ionite34-1/+3
- Added docstring to `Emoji` class. - Added period to end of `_ext_emoji_replace` docstring.
2022-07-12Added external emoji replacement filterGravatar ionite34-0/+46
- Added pattern `RE_EMOJI` to capture emoji markdowns - Implemented dataclass for emoji information - Added function `_ext_emoji_replace` to replace external undisplayable emojis with random emoticons - Added call to said function in `_uwuify`
2022-07-12Removed redundant character classGravatar ionite34-1/+1
The regex character class for the single character [w] is redundant. The character can be directly used.
2022-07-12Type annotations for fun_cogGravatar ionite34-1/+5
2022-07-09Bump lxml from 4.7.1 to 4.9.1 (#1068)Gravatar dependabot[bot]-822/+75
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Xithrius <[email protected]>
2022-07-09Bump pycares from 4.1.2 to 4.2.0 (#1067)Gravatar dependabot[bot]-32/+32
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-09Update .uwu to work with replies (#1070)Gravatar Bradley Reynolds-2/+15
2022-06-25Help: remove redundant space in subcommand aliasesGravatar Richard Si-1/+1
`parent` already has a trailing space so let's not add *another* one.
2022-06-17RealPython home page displayed on no user search. (#1063)Gravatar Xithrius-4/+12
2022-05-30Add amssymb packageGravatar PH-KDX-1/+1
Co-authored-by: Shakya Majumdar <[email protected]>
2022-05-26Allow latex command in data science and ai channelGravatar Chris Lovering-0/+8
2022-05-20Add topics for `#media-processing` channel (#1054)Gravatar DMFriends-0/+11
Add topics for `#media-processing` channel Co-authored-by: mina <[email protected]>
2022-05-18Add amsmath supportGravatar PH-KDX-0/+1
Amsmath is a widely used package for things such as including text in equations or aligning multiple equations. This PR includes it in the default LaTeX template so that p-eople can use Amsmath commands in the .latex command.