Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
chatbot/wip.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
17 lines (14 sloc)
702 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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) | |
""" |