| 66 | return "%d:%02d:%02d" % (hour, minutes, seconds) |
| 67 | |
| 68 | async 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 | |
| 82 | async def get_seconds_first(time_string): |
| 83 | conversion_factors = { |