Skip to content

Conversation

@pixelbitie
Copy link

Update lowchi.py
Fixes the following:

  • Exchanges eval() function (which was vulnerable) to safer simpleeval function
  • Makes it so that the bot token is loaded from an environment variable instead of being directly exposed in the code

Added requirements.txt .gitignore, and README files to facilitate these changes

Resolves #1

Makes it so that the .env file storing the discord bot token is never actually committed
Dependencies for all the imports in lowchi.py
Updated installation instructions for the new .env file and dependencies
Update lowchi.py
Fixes the following:
- Exchanges eval() function (which was vulnerable) to safer simpleeval function
- Makes it so that the bot token is loaded from an environment variable instead of being directly exposed in the code

Added requirements.txt and .gitignore files to facilitate these changes.

Resolves xeniiauy#1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vulnerability

1 participant