Skip to content

Commit af6cb03

Browse files
committed
changing name of helper send function to help with lookup in PyCharm
1 parent e9898d0 commit af6cb03

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

wall_e/extensions/administration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from utilities.bot_channel_manager import BotChannelManager
1818
from utilities.embed import embed, WallEColour
1919
from utilities.file_uploading import start_file_uploading
20-
from utilities.send import send as helper_send
20+
from utilities.send import helper_send
2121
from utilities.setup_logger import Loggers
2222
from wall_e_models.models import CommandStat
2323

wall_e/extensions/misc.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from utilities.embed import embed, WallEColour
1919
from utilities.file_uploading import start_file_uploading
20-
from utilities.send import send
20+
from utilities.send import helper_send
2121
from utilities.setup_logger import Loggers
2222

2323

@@ -342,7 +342,7 @@ async def emojispeak(self, ctx, *args):
342342
self.logger.debug(f"[Misc emojispeak()] deleting {ctx.message}")
343343
await ctx.message.delete()
344344
self.logger.debug(f"[Misc emojispeak()] sending {ctx.author.mention} says {output}")
345-
await send(self.logger, ctx, content=f"{ctx.author.mention} says {output}")
345+
await helper_send(self.logger, ctx, content=f"{ctx.author.mention} says {output}")
346346

347347
@app_commands.command(name="tex", description="Draws a mathematical formula using latex markdown")
348348
@app_commands.describe(formula="formula to draw out")

wall_e/utilities/send.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def get_last_index(logger, content, index, reserved_space):
3030
return last_index
3131

3232

33-
async def send(logger, ctx, content=None, tts=False, embed=None, file=None, files=None,
34-
delete_after=None, nonce=None, prefix=None, suffix=None, reference=None):
33+
async def helper_send(logger, ctx, content=None, tts=False, embed=None, file=None, files=None,
34+
delete_after=None, nonce=None, prefix=None, suffix=None, reference=None):
3535
"""
3636
send helper function that helps when dealing with a message that has too many characters
3737
:param logger: the calling service's logger object

0 commit comments

Comments
 (0)