MCPcopy Create free account
hub / github.com/TechifyBots/Rename-Bot / send_log

Function send_log

helper/utils.py:68–80  ·  view source on GitHub ↗
(b, u)

Source from the content-addressed store, hash-verified

66 return "%d:%02d:%02d" % (hour, minutes, seconds)
67
68async def send_log(b, u):
69 if Config.LOG_CHANNEL:
70 curr = datetime.datetime.now(pytz.timezone("Asia/Kolkata"))
71 log_message = (
72 "**--Nᴇᴡ Uꜱᴇʀ Sᴛᴀʀᴛᴇᴅ Tʜᴇ Bᴏᴛ--**\n\n"
73 f"Uꜱᴇʀ: {u.mention}\n"
74 f"Iᴅ: `{u.id}`\n"
75 f"Uɴ: @{u.username}\n\n"
76 f"Dᴀᴛᴇ: {curr.strftime('%d %B, %Y')}\n"
77 f"Tɪᴍᴇ: {curr.strftime('%I:%M:%S %p')}\n\n"
78 f"By: {b.mention}"
79 )
80 await b.send_message(Config.LOG_CHANNEL, log_message)
81
82async def get_seconds_first(time_string):
83 conversion_factors = {

Callers 1

add_userMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected