Skip to content
Permalink
Browse files
Trying to find a more secure eval() alternative
(in other words a function that doesn't expose your OS and files to being destroyed by a single line of code in discord chat)
  • Loading branch information
stavilam committed Nov 10, 2018
1 parent a0ce843 commit 566f61d6073fcafd81e62c380fb6912cad4dd8b5
Showing 1 changed file with 9 additions and 1 deletion.
10 wip.py
@@ -1,9 +1,17 @@
"""
Work in progress
check if message id is in message cache
async def on_raw_message_delete(self, payload):
print (client._connection._messages)
#if discord.utils.get(client._connection._messages, id = payload.message_id): #Work in progress
await client.get_channel(payload.channel_id).send(f'Message has been deleted at the request of .')
evaluate a string WITHOUT eval() - eval() has security issues and therefore is a dangerous
function. this is for the calculator
@commands.command()
async def calc(self, ctx, *args):
print (*args)
print (*args)
"""

0 comments on commit 566f61d

Please sign in to comment.