GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - aredden/discordpy-python-eval: Example discord.py python eval bot

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
main.py
main.py
 
 
requirements.txt
requirements.txt
 
 
runner.py
runner.py
 
 

Repository files navigation

discordpy-python-eval

Example discord.py python eval bot

This is a simple example discord.py bot that will evaluate python based on discord message content. It reads message content, then prints the message content into the runner.py file. Then uses os.popen to run the file as python on the host machine. Once the file has run, the stdout will be sent back to the discord channel that the python message originated from.

This project requires a .env file located in the same directory as the main.py file. It should contain your discord token like this:

# Without curly braces
DISCORD_TOKEN={Your token}

About

Example discord.py python eval bot

Topics

discord-pypythonpython-repl

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.