Merge pull request 'Configuration (Part 2)' (#3) from BodgeMaster/os-release-bot:master into master

Reviewed-on: jocadbz/os-release-bot#3
pull/1/head
Joca 2023-01-13 19:59:46 +00:00
commit f3dd41f94e
1 changed files with 2 additions and 2 deletions

4
bot.py
View File

@ -65,9 +65,9 @@ async def report_message(interaction: discord.Interaction, message: discord.Mess
if not interaction.guild.id==config["guild"]: if not interaction.guild.id==config["guild"]:
return return
await interaction.response.send_message( await interaction.response.send_message(
f'Thanks for reporting this message by {message.author.mention} to our moderators.', ephemeral=True f'Thanks for reporting.', ephemeral=True
) )
log_channel = interaction.guild.get_channel(929345959501115422) # replace with your channel id log_channel = interaction.guild.get_channel(config["report channel"])
embed = discord.Embed(title='Reported Message') embed = discord.Embed(title='Reported Message')
if message.content: if message.content:
embed.description = message.content embed.description = message.content