Compare commits

..

No commits in common. "4d19b76a65eb46a5f9747c6239a123db7ba5bd05" and "cbcdc357df6f108eb6420657b3c9b9aba07eef16" have entirely different histories.

1 changed files with 2 additions and 6 deletions

8
bot.py
View File

@ -94,19 +94,15 @@ async def report_message(interaction: discord.Interaction, message: discord.Mess
embed.timestamp = message.created_at embed.timestamp = message.created_at
url_view = discord.ui.View() url_view = discord.ui.View()
url_view.add_item(discord.ui.Button(label='Go to Message', style=discord.ButtonStyle.url, url=message.jump_url)) url_view.add_item(discord.ui.Button(label='Go to Message', style=discord.ButtonStyle.url, url=message.jump_url))
embed.add_field(name="Reported by:", value=interaction.user, inline=False)
await log_channel.send(embed=embed, view=url_view) await log_channel.send(embed=embed, view=url_view)
@client.tree.command(name="status") @client.tree.command(name="status")
async def status(interaction: discord.Interaction): async def status(interaction: discord.Interaction):
embed = discord.Embed(title='System Stats') embed = discord.Embed(title='System Stats')
embed.add_field(name="Uptime:", value=seconds_elapsed(), inline=True) embed.description = f"""Uptime: {seconds_elapsed()}
embed.add_field(name="System:", value=sys.platform, inline=True) System: {sys.platform}"""
embed.add_field(name="Version:", value="v1.2.0", inline=True)
url_view = discord.ui.View() url_view = discord.ui.View()
url_view.add_item(discord.ui.Button(label='See the source code', style=discord.ButtonStyle.url, url="https://lostcave.ddnss.de/git/jocadbz/os-release-bot"))
url_view.add_item(discord.ui.Button(label='Report a issue', style=discord.ButtonStyle.url, url="https://lostcave.ddnss.de/git/jocadbz/os-release-bot/issues"))
await interaction.response.send_message(embed=embed, view=url_view) await interaction.response.send_message(embed=embed, view=url_view)
print("Status queried.") print("Status queried.")