|
|
@ -248,20 +248,17 @@ async def marry(ctx, member: discord.Member):
|
|
|
|
# Allows the bot to echo the dm's that it receives
|
|
|
|
# Allows the bot to echo the dm's that it receives
|
|
|
|
@client.event
|
|
|
|
@client.event
|
|
|
|
async def on_message(message):
|
|
|
|
async def on_message(message):
|
|
|
|
if commands.is_owner():
|
|
|
|
# Checking if the message is not sent in server
|
|
|
|
channel = client.get_channel(663651584399507481)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
# Get the channel id of the channel it wants to push messages to
|
|
|
|
|
|
|
|
channel = client.get_channel(721449922838134876)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If the channel that the message is sent in is private
|
|
|
|
|
|
|
|
if message.guild is None:
|
|
|
|
if message.guild is None:
|
|
|
|
if message.author.id == 578919370697342977:
|
|
|
|
# Checking if the owner is sending the message
|
|
|
|
# Echo the message contents to the channel specified
|
|
|
|
if commands.is_owner():
|
|
|
|
|
|
|
|
# Send message to #general
|
|
|
|
|
|
|
|
channel = client.get_channel(663651584399507481)
|
|
|
|
await channel.send(message.content)
|
|
|
|
await channel.send(message.content)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# Do nothing
|
|
|
|
# Send message to #enso-chan~commands
|
|
|
|
return
|
|
|
|
channel = client.get_channel(721449922838134876)
|
|
|
|
|
|
|
|
await channel.send(message.content)
|
|
|
|
|
|
|
|
|
|
|
|
await client.process_commands(message)
|
|
|
|
await client.process_commands(message)
|
|
|
|
|
|
|
|
|
|
|
|